Search code examples
androidandroid-cameraandroid-camerax

Android CameraX multiple Analyzers


Is it possible to add multiple ImageAnalysis.Analyzer instances (use cases) at the same time using CameraX API?

For instance:

You need to run an Object Detector and Barcode Detector simultaneously.

Thanks in advance!


Solution

  • Only one analyzer could be registered at any time. You might have to chain your analyzers in your app with its own image copies, probably in different threads.