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

Doesn't correctly recognize some QR #21417

Open
jroblesluna opened this issue Jan 10, 2022 · 6 comments
Open

Doesn't correctly recognize some QR #21417

jroblesluna opened this issue Jan 10, 2022 · 6 comments

Comments

@jroblesluna
Copy link

System information (version)
  • OpenCV =>4.5.5
  • Operating System / Platform =>Mac/Windows
  • Compiler => Python
Detailed description

Some QR files in PNG format are recognized by smartphones and algo with ZXING library, but OpenCV fails

Steps to reproduce

With attached Splitted_000.png works fine
With attached Splitted_002.png and Splitted_006.png detection fails (recognized as not rectangular QR matrix)
Splitted_000
Splitted_002
Splitted_006

Issue submission checklist
  • [X ] I report the issue, it's not a question
  • [X ] I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • [X ] I updated to latest OpenCV version and the issue is still there
  • [X ] There is reproducer code and related data files: videos, images, onnx, etc
@alexioslyrakis
Copy link

@jroblesluna Does the same happen in with a C++ version of your program? Can you post the sample code?

@liuyunfeng2016
Copy link

@jroblesluna Does the same happen in with a C++ version of your program? Can you post the sample code?

Hello,I have the same question. In python,
我使用了官方样例的二维码图片例子,但是依旧检测不出来,我用的是
opencv-contrib-python ==4.5.5.62,opencv-python == 4.5.5.62
https://raw.githubusercontent.com/opencv/opencv_extra/4.x/testdata/cv/qrcode/multiple/3_qrcodes.png
qrcode_detector = cv2.QRCodeDetector() qr_points = qrcode_detector.detect(img)
我尝试过下面一系列的检测情况,但是依旧检测不出来
decodeMulti

@AleksandrPanov
Copy link
Contributor

AleksandrPanov commented Jun 9, 2022

First image (TC000) fixed by #22025

@asmorkalov
Copy link
Contributor

With current 4.x (pre 4.7.0) all qr codes are detected correctly. The last one is decoded with dectAndDecodeMulti() by some reason. M.b. related: #22107

@AleksandrPanov
Copy link
Contributor

This new problem, decodeMulti() and decode() work differently in QRCodeDetector

@microboym
Copy link

same problem in 4.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants