Hello. I know the camera library and CameraEx class can be used to access the Google Vision barcode scanning, however has anyone done this with the Camera2 library?
I'm having issues with particular Samsung devices not detecting barcodes with the camera library, and want to check with camera2.
The three supported formats are NV16 (16), NV21 (17) and YV12 (842094169).
Maybe your camera returns a different preview format. Try it with the two other values.