Hi
I'm basically looking into the viability for CameraX and image analysis of the preview images returned by the Camera.
So far, I've had some success getting it all setup, but initially I noticed there wasn't really any ability to control the camera settings when using an ImageAnalysisConfig builder. So the preview it was scraping was locked to default settings, returning something like 16ish FPS on my current device, and no ability to alter AE, frame duration, or even turning the torch on/off.
However I discovered that if I spin up a PreviewConfig at the same time, and alter the camera settings in *that*, then the Image Analyzer would suddenly start getting better frame rates.
Similarly, if I used the Camera2Config.Extender on the PreviewConfig to set AE to (60,60) target FPS, turn the Torch on etc, then the camera settings would all work fine, and the ImageAnalyzer would start scraping frames at 60 fps :thumbsup:
Is this all by design? Are we expected to use a PreviewConfig to alter the camera settings for an ImageAnalyzer or is there plans to allow using Camera2Config.Extender (or any other extenders) on ImageAnalysisConfig instances too so we can run image analysis without the dependency on preview builders?
Cheers!
-Iain