-
Notifications
You must be signed in to change notification settings - Fork 343
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 decode Qr code or barcode via QZXingLive on Linux #210
Comments
Hello @Batiana226 , thank you for your kind words. QZXingLive on master branch should be working out-of-the-box for Ubuntu. For the moment I run it on Ubuntu 21.04 with Qt 5.15. To narrow down your issue:
|
Even when I switch to the master branch, I still can't decode a barcode |
In most cases, this means that it has to do with the image decoding and the image format. It can be fixed. I would suggest to add the following line:
in line 278: Lines 274 to 280 in 2fd4dd6
to print the image format. It would help a lot if you could send this information. |
In my console i have this format: Format_YUYV |
Greetings, today I have setup a machine with Ubuntu 18.04 and Qt 5.15.2. QZXingLive worked as expected without any need of fixing normally decoding Qr Codes. I would recommend to download a clean copy of the QZXing code and retry. Keep in mind that this example, by default has enabled the decoding of qzxing/examples/QZXingLive/main.qml Line 99 in 2fd4dd6
If this still does not work, it would be helpful to enable frame saving to local disk form further examination. To do this, uncomment the following lines Lines 383 to 387 in 2fd4dd6
Start the application, place a Qr Code in front of the camera and send here a representative image from the saved frames to see if there is something wrong. EDIT: Minor Note: create the output folder before running the frame saving: mkdir -p ~/Pictures/qrtest |
Yes it can be fixed though since I am not yet able to reproduce it, it will take some time. It is related to the parsing of the frame data into a QImage. The responsible code is: Lines 341 to 360 in 2fd4dd6
|
Sorry for the long delay, though I am a bit puzzled because the frames report that their format is YUYV though the above process can not decode it properly. Could you provide the following information for your camera hopping that it would solve a part of the puzzle? sudo apt install v4l-utils
v4l2-ctl v4l2-ctl --list-formats-ext |
Hello to all,
I am developing a barcode reader with your library, I want to say that you have done a great job. In my project, the decoding part via an image works perfectly, so I decided to upgrade it with a live decoding. To start, I wanted to test the QZxinglive example on QT, but I can't detect any barcode. My operating system is ubuntu 18 with QT 5.15 and as camera a webcam. I would like to know if someone could help me to solve this problem?
I went through all the solved problems and noticed that it was handled on a branch with the name 86-Fix-QZXingFilter-linux, but even when I go to that branch and run it, I still have the same problem.
I would like to solve this; any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: