-
Notifications
You must be signed in to change notification settings - Fork 432
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
Unable to read QR cord. #58
Comments
TLDR: replace zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.cpp Lines 288 to 289 in 07e5600
return 0;
I started working on this new c++ port by @huycn and expected it to work fine here, since it is based on the up-to-date Java code. Interestingly, it failed to decode the QR-code just like you described. I debugged the code and found the problem. What I don't understand is, how the Java version would work here, since the problematic section is exactly the same code (as far as I can tell). The issue is that a wrong finder pattern is detected, leading to the wrong dimension estimate, leading the invalid version number. That happens because the So no idea how the Java version deals with this but in my opinion, the |
Sorry about my late reply. I intended to check the version data between JAVA version and C++ version. Thank you for an important information. |
@huycn did have a look at how the JAVA version was able to detect the code and it turned out that you need to set the |
The JAVA version of ZXing can read, but the C++ version of ZXing cannot read.
The error message was "versionNumber must be between 1 and 40".
The QR cord made following cords in some site, but the result was the same.
Does anyone know the solution ?
The text was updated successfully, but these errors were encountered: