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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only rotate camera can recognize the qrcode #444

Closed
xxss0903 opened this issue Nov 27, 2018 · 4 comments
Closed

Only rotate camera can recognize the qrcode #444

xxss0903 opened this issue Nov 27, 2018 · 4 comments

Comments

@xxss0903
Copy link

Description of the problem:

I have to rotate my device then can quickly recognize the qrcode image.
If face straight vertical to the qrcode can very hardly scan the result.
qrcode

Which library version are you using? E.g. 3.2.0.
3.3.3

Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0)

Everyone i have

Does the same happen on other devices or an emulator?
yes

Can you reproduce the issue in the sample project included with the library? If not, can you
provide your own sample project or sample code that produces this error?

In the case of an error do you have a stack trace or adb logs?
I debug the Detector and find when i go to processFinderPatternInfo and get a wrong qrcode version, it supposed to be 9,but it actually is 8.

@NicReich
Copy link

I’ve had the same issue. I used this for a school project and the qr reader scans immediately after a screen rotation. I thought is was because I was using it to scan a display connected to raspberry pi running Android things. Nonetheless, I had the same issue

@xxss0903
Copy link
Author

I’ve had the same issue. I used this for a school project and the qr reader scans immediately after a screen rotation. I thought is was because I was using it to scan a display connected to raspberry pi running Android things. Nonetheless, I had the same issue

I found if rotate BitMatrix data by rotate180 function in Decoder toBitmap() function, it can get result very quickly.

@rkistner
Copy link
Member

rkistner commented Sep 8, 2019

zxing:core 3.4.0 has some improvements for QR codes scanning. Please open an issue again if you still have trouble after upgrading.

@rkistner rkistner closed this as completed Sep 8, 2019
@stud0709
Copy link

stud0709 commented Sep 6, 2022

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

4 participants