解决方法
Shortest distance from frontmost surface of the lens that can be
brought into sharp focus.If the lens is fixed-focus,this will be 0.
@L_404_1@
换句话说,如果您想要管理焦点,请记住LENS_INFO_MINIMUM_FOCUS_DISTANCE为您提供最小焦点,但要获得“最大”焦点,您必须使用LENS_INFO_HYPERFOCAL_DISTANCE.
float yourMinFocus = mCameraCharacteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE); float yourMaxFocus = mCameraCharacteristics.get(CameraCharacteristics.LENS_INFO_HYPERFOCAL_DISTANCE);