4

我需要从拍摄的每张图像中获得尽可能多的价值。从焦距和焦距开始。如何从 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);
4

0 回答 0