Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the exposure time be manually adjusted for an iOS cameras?

Tags:

ios

iphone

I want to adjust the exposure of the iPhone/iPod touch camera with intimate detail. I would prefer to take a series of photos with decreasing exposure times to obtain a sequence of images (for HDR reconstruction). Is this possible?

If not, what's the next best thing? It seems you can set a point of interest in the image for the autoexposure. Perhaps I could search for a dark/light region of the image and then use this exposurePointOfInterest to adjust the exposure, but this seems like a very indirect solution that is also error-prone. If anybody has tried an alternative, such an answer is also desirable.

like image 873
gonzojive Avatar asked Jan 20 '11 09:01

gonzojive


2 Answers

As iOS gives control of frame durations by MinFrameDuration MaxFrameDuration

since exposure times vary based on fram rate and frame duration By setting min and max frame rate to a particular value You will be locking the fram rate. That will effect your exposure times. This is also very indirect way of controlling, may be it helps your case

some example would be like this:

if (conn.isVideoMinFrameDurationSupported)
    conn.videoMinFrameDuration = CMTimeMake(1, CAPTURE_FRAMES_PER_SECOND);
if (conn.isVideoMaxFrameDurationSupported)
    conn.videoMaxFrameDuration = CMTimeMake(1, CAPTURE_FRAMES_PER_SECOND);
like image 56
thar_bun Avatar answered Oct 19 '22 13:10

thar_bun


Since you would have to decrease the shutter speed of the camera, this unfortunately does not appear to be possible, and more importantly, against the HIG:

Changing the behavior of iPhone external hardware is a violation of the iPhone Developer Program License Agreement. Applications must adhere to the iPhone Human Interface Guidelines as outlined in the iPhone Developer Program License Agreement section 3.3.7

Related article Apple Removes Camera+ iPhone App From The App Store After Developer Reveals Hack To Enable Hidden Feature.

If it can be done programatically, instead of with the hardware, you might have a chance, but then its just an effect on an image,not a true long exposure picture.

There are some simulated slow shutter apps that do get approved like Slow Shutter or Magic Shutter.

Related article: New iPhone Camera App “Magic Shutter” Hits The App Store.

like image 24
chown Avatar answered Oct 19 '22 13:10

chown