Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random OnDetected invoked when not actively scanning QR codes #47

Closed
LeoJHarris opened this issue Nov 5, 2020 · 2 comments
Closed

Random OnDetected invoked when not actively scanning QR codes #47

LeoJHarris opened this issue Nov 5, 2020 · 2 comments

Comments

@LeoJHarris
Copy link

Hi there! Thanks for what appears to be a great QR code scanner 馃憤 one issue I noticed however is I have a tabbed page with 2 child pages, one happens to be a page with a QR code scanner view in it to scan items and another page has scanned barcodes. I noticed randomly that on the scanned barcodes page the app/device randomly vibrated and scanned as though it was scanning a barcode but I didn't even have a barcode being scanned in front of the device. I put break point in on the OnDetected event method to see the result and looks like following:

Capture

It seems rather odd it would randomly trigger the QR code OnDetected event. Would there be a reason for this since I don't even have a QR code in front of the camera?

@JimmyPun610
Copy link
Owner

JimmyPun610 commented Nov 6, 2020

Hi @LeoJHarris

Thank you.
After investigation on the provided screenshot, the barcode scanner may detect a barcode you do not expect as the sensor is quite sensitive and it serves many kinds of barcodes, so I suggest you try to narrow down the supporting barcode types.
If your application is designed only for a certain barcode format such as QRCode you should call GoogleVisionBarCodeScanner.Methods.SetSupportBarcodeFormat.

//Default All
//Set detect QRCode only
GoogleVisionBarCodeScanner.Methods.SetSupportBarcodeFormat(BarcodeFormats.QRCode);
//Set detect QRCode + Code39
GoogleVisionBarCodeScanner.Methods.SetSupportBarcodeFormat(BarcodeFormats.QRCode | BarcodeFormats.Code39);

@JimmyPun610
Copy link
Owner

closed due to no update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants