Force AE to strictly respect MeteringPoint

12 views
Skip to first unread message

Nathan AUDVARD

unread,
9:58 AM (8 hours ago) 9:58 AM
to Android CameraX Discussion Group
Hi,

I'm working with CameraX and implementing a custom AE zone using FocusMeteringAction.

I've noticed that the AE algorithm seems to look outside the zone, I think to avoid burning some part of the picture. However, for my use case, I need the exposure to be optimized strictly for the content inside the AE zone. I do not mind if the rest of the image is overexposed.

I'm using CameraX 1.5.2.

Is there a way to force AE to ignore the outside region ?

Thanks!

Tahsin Masrur

unread,
12:19 PM (5 hours ago) 12:19 PM
to Android CameraX Discussion Group, n.au...@dental-monitoring.com
Hi,

I guess this matches with the feature request issue we have created at https://issuetracker.google.com/issues/477810106?

I don't think there's any easy way to do this for users with the current public APIs of CameraX, we will need to add a new API. Just from the top of my head, I am thinking it can be new overloads of the FocusMeteringAction.Builder#Builder and FocusMeteringAction.Builder#addPoint functions which accept a `lockingMode` in addition. For example,

```
cameraControl.startFocusAndMetering(
    FocusMeteringAction.Builder(
            point,
            lockingMode = FLAG_AF or FLAG_AE or FLAG_AWB // Default is just FLAG_AF
        )
        .build()
)
```

What do you think? Does this satisfy your requirements?





Reply all
Reply to author
Forward
0 new messages