on-internet
← Community

ML Kit Barcode Scanning doesn't detect QR codes in the photo of the monitor screen

Stack Overflow ·

I am using com.google.mlkit:barcode-scanning:17.0.2 to detect QR codes in the pictures. After getting URI from the gallery I create InputImage and then process this image with BarcodeScanner to find QR codes. When I select a photo of QR codes on paper code is found. But when I take a photo of the QR code on the monitor screen code is never found. What I should do to be able to detect a QR code in a photo of a monitor screen? (When I use the same scanner with CameraX to do live QR code detection it finds code on the monitor screen) val image = InputImage.fromFilePath(context, uri) val scanOptio

Comments

Sign in or sign up to comment and upvote.

No comments yet.