IOS 4.2 looking for a way to manipulate focus distance on iPhone 4

I work in an AR project and we want to manipulate the focus distance of the iPhone4 camera. Is it possible? So far, we have found that we just switched and autofocused as the options listed here: http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVCaptureDevice_Class/Reference/Reference.html%23// apple_ref / occ / instm / AVCaptureDevice / isAdjustingFocus

Thanks in advance for any advice! :)

+6
iphone camera
source share
2 answers

As for the API, it seems that only supported actions are: - check if AF is supported on the device (iPhone 3GS - 4, only I think) - enable / disable AF - set the point of interest, which is NOT a distance, but only a point in kind of camera.

Of course, not what you want to do.

May be supported in a private API ... but this will not go through the validation process.

+4
source share

A workaround may be to see how many pixels move as the user shifts slightly to understand how distant parts of the image are, and then set the AF point in the image area either closer or further based on this.

But also send a Radar ticket requesting access to indicate the focus distance, if possible - if enough people ask Apple to add it to the API.

0
source share

All Articles