How can i use "Evaluative metering" mode in CameraX.

133 views
Skip to first unread message
Assigned to scot...@google.com by wuj...@google.com

江澎涌

unread,
Dec 1, 2021, 3:09:47 AM12/1/21
to Android CameraX Discussion Group
When I use startFocusAndMetering method to focus and metering the very bright point,the preview page will be very dark. This is normal,because I use the "Spot metering" mode.

So I want how to use the "Evaluative metering" mode and I can get a preview page with normal light.

Scott Nien

unread,
Dec 6, 2021, 2:10:18 AM12/6/21
to Android CameraX Discussion Group, jpyn...@gmail.com
AFAIK,  camera2 doesn't support metering mode like this.  Since CameraX is running on top of Camera2,  there is no way that CameraX can support that either. 
But if the device supports multile AE region,  you can actually add multiple MeteringPoints for AE. 

江澎涌

unread,
Dec 6, 2021, 2:42:29 AM12/6/21
to Android CameraX Discussion Group, Scott Nien, 江澎涌
Thank you for answer the question.

The system camera metering the very bright point, the preview page also very dark. But it will restore normal light after I wave the phone. how can my camera application do like this? 

You mean I add multile AE region(example: top-left point, top-right point, bottom-left point, bottom-right point, center point) to CameraX to avoid very dark preview page? Or have better advice for me?

Regards,
jiang peng yong 

Scott Nien

unread,
Dec 6, 2021, 10:57:07 PM12/6/21
to 江澎涌, Android CameraX Discussion Group
System camera apps often have their own secret sauce that is not exposed to the developers. 
If you want to restore the AE ,  you can call cameraControl#cancelFocusAndMetering whenever you think is appropriate. 

Is this what you are looking for? 
Reply all
Reply to author
Forward
0 new messages