문제

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