我需要从拍摄的每张图像中获得尽可能多的值。从焦点和焦点距离开始。我如何从camerax获得它?
我尝试使用camera2 api,每次拍摄的聚焦距离总是一样。
float lensFocusDistance = result.get(CaptureResult.LENS_FOCUS_DISTANCE);
float lensFocalLength = result.get(CaptureResult.LENS_FOCAL_LENGTH);
float lensAperature = result.get(CaptureResult.LENS_APERTURE);
Pair<Float, Float> lensFocusRange = result.get(CaptureResult.LENS_FOCUS_RANGE);