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

Swiss QR-bills (ISO 20022) not working in some cases #22131

Closed
4 tasks done
sbrunner opened this issue Jun 20, 2022 · 4 comments
Closed
4 tasks done

Swiss QR-bills (ISO 20022) not working in some cases #22131

sbrunner opened this issue Jun 20, 2022 · 4 comments
Assignees
Labels
category: objdetect confirmed There is stable reproducer / investigation complete

Comments

@sbrunner
Copy link

sbrunner commented Jun 20, 2022

System information (version)
  • OpenCV => 4.6.0.66 and 4.4.0.46
  • Operating System / Platform => Linux
  • Compiler => Using the Python package with Python 3.10
Detailed description

The Swiss QR-bills are detected, but not always decoded.

See also:

Steps to reproduce

Used image:
2

import cv2

image = cv2.imread("....png")
detector = cv2.QRCodeDetector()

data, bbox, straight_qrcode = detector.detectAndDecode(image)
print(data)
print(bbox)

In cases like this one, it steels not working...

I get the bbox:

[[ 21.436857  23.88773 ]
 [564.2752    25.00468 ]
 [559.34143  562.7794  ]
 [ 16.857067 559.7231  ]]

But no data...

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc
@asmorkalov asmorkalov added category: objdetect needs investigation Collect and attach more details (build flags, stacktraces, input dumps, etc) labels Jun 20, 2022
@AleksandrPanov
Copy link
Contributor

QR codes of large versions are still not decoded well in OpenCV

@AleksandrPanov AleksandrPanov added confirmed There is stable reproducer / investigation complete and removed needs investigation Collect and attach more details (build flags, stacktraces, input dumps, etc) labels Jul 27, 2022
@AleksandrPanov
Copy link
Contributor

@sbrunner try to use wechat detector

@sbrunner
Copy link
Author

sbrunner commented Aug 5, 2022

Effectively, I get good result with him :-) Thanks

@crackwitz
Copy link
Contributor

someone on Stack Overflow reports issues with those Swiss codes too: https://stackoverflow.com/questions/76362026/qr-code-detecting-in-python-with-opencv-raises-unicodedecodeerror-utf-8-codec

In that case, an UnicodeDecodeError is thrown. I don't see how that should ever happen. It's either binary data, or the encoding should have been specified by the standard or the code itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: objdetect confirmed There is stable reproducer / investigation complete
Projects
None yet
Development

No branches or pull requests

4 participants