-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Barcode scanner detected wrong barcode sometimes #1130
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
@zhouyiself Could you help me check |
@longld103 it looks like you have the correct result the majority of the time, can you explain what the issue is? Please use the issue template when filing issue.s |
Step 1: Describe your environment
Step 2: Describe the problem:I'm using camera2 api, get bitmap from onImageAvaiable function > put the bitmap to firebase barcode detector Steps to reproduce:
Observed Results:
1209-002558GK28E21060524860000321 Expected Results:
Relevant Code:This is my code: |
@longld103 the correct response is returned 12/15 frames. Unfortunately there's no way to guarantee you get the correct response on every single frame, especially when the source image is imperfect (like yours). I would suggest waiting until you get the same response in two frames, that way you know it's right. |
Hi @samtstern 1209-002558GK28E21060524860000321 |
@longld103 thank you for trying again with a higher-quality image, that's really helpful. Unfortunately we can't count on 100% accuracy for MLKit because there are too many factors:
I would suggest the following ways to make your application more resilient:
|
@samtstern Thank for your reply. MLKit is wonderful 😘 |
These are results of detector. String
1209-002558GK28E21060524860000321
is correct1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-, 9ZGK18E210523242150321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
3410702717477
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-, 9ZGK18E210523242150321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
The text was updated successfully, but these errors were encountered: