Creating a QR code or barcode scanner was a tediuos task for developers as it required setting up lots of stuff related to Camera. Camera APIs have never been fun to work with. Traditional Camera APIs in Android are not reliable as they do not work for all the mobile phones universally.
But this is not the case anymore. With the latest library-bundle introduced as part of Android Jetpack - CameraX - we no longer need to worry about all the boilerplate code to setup camera preview and image analysis for scanning barcodes.
ScannerX app is a showcase of how the QR/Barcode scanner can be implemented with the use of CameraX libraries. It also focuses on the demonstrating how different scanner SDKs can be incorporated with CameraX.
CameraX + Barcode Scanning SDK = ScannerX
ScannerX features following barcode scanner SDKs:
You can pick which SDK you want to use for scanning from the app itself. This will also help you compare how both popular SDKs perform in various positions and distances.
Other features of ScannerX includes:
Improvements planned:
Your feedback and suggestions are most welcome!
References: