No. You can't currently set the focus distance manually in iOS. There are no public APIs to do so.
Setting the focus depth of the AVCaptureDevice ios
-
01-06-2022 - |
题
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?
解决方案
不隶属于 StackOverflow