I want to set the focus of the camera to be a fixed value (in my case 6"). Objects that are 6in from the camera will be in focus and anything else will be out of focus.

But I don't see any way to hook into the focus value of the iphone camera. You can turn the autofocus on and off or even focus to a point in your image, but that will not work in my case.

Any thoughts?

Can you force the focus of the camera to be a given distance?

有帮助吗?

解决方案

No. You can't currently set the focus distance manually in iOS. There are no public APIs to do so.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top