Hello developers,
We are excited to announce that new camera-mlkit-vision library is available now. You can try it out with the latest CameraX 1.2.0-alpha01 version. This is to provide an easy way for developers to use MLKit with CameraX.
By using camera-mlkit-vision, developers can easily integrate CameraX with many MLKit features, including barcode scanning, face detection, text detection and so on. The artifact handles coordinate transformation from ImageAnalysis to PreviewView, so that the MLKit results can be used to create an overlay directly.
Please take a look at our test app and see how it works. The test app detects QR codes and overlays a bounding box on PreviewView with a few lines of code. Try it out and report bugs or feedback here. For more information about 1.2.0-alpha01, please read the release notes here. Looking forward to hearing feedback from you!
CameraX development team