Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 4.2, looking for a way to manipulate the iPhone 4 camera's focus distance

I am working in an AR project, and we want to manipulate the focusing distance of the iPhone4 camera. Is this even possible? So far, we've found just toggling and auto focusing as 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 tips! :)

like image 264
Slade Villena Avatar asked Nov 30 '10 00:11

Slade Villena


1 Answers

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

Certainly not what you want to do.

Might be supported in private API... but that would not pass the validation process.

like image 100
Sylvain G. Avatar answered Sep 30 '22 20:09

Sylvain G.