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

QRCodeDetector() not working #1016

Open
kendo55 opened this issue Aug 6, 2024 · 1 comment
Open

QRCodeDetector() not working #1016

kendo55 opened this issue Aug 6, 2024 · 1 comment

Comments

@kendo55
Copy link

kendo55 commented Aug 6, 2024

screenschot_nogo

Why this picture, can not be decoded?
I can read this picture, displayed on PC, with my Galaxy S20 Handy. The QR-Text is o.k. !
Also in Banking Applications i can read this picture.


img = cv2.imread("./output_UPC_Jun/screenschot_nogo.png ")  

cv2.imshow("img", img)
print("irgend eine Taste drücken für weiter .....")
cv2.waitKey(0)
cv2.destroyAllWindows()
# initialize the cv2 QRCode detector
detector = cv2.QRCodeDetector()
# detect and decode
data, bbox, straight_qrcode = detector.detectAndDecode(img)

# if there is a QR code
if bbox is not None:
    print(f"there is a QR code, data:\n{data}")
    
else:
    print("ERROR: there is no QR code !!!!!")
  • operating system: WIN 11
  • architecture ( x86)
  • opencv-python version: -PS C:\projekte\Python> pip install --upgrade pip
    Requirement already satisfied: pip in c:\users\hs3\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (24.2
Issue submission checklist
  • [x ] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

  • [x ] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)

  • [ x] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")

  • [x ] I'm using the latest version of opencv-python

@advait-zx
Copy link

These might be issues
Bounding Box Detection Failure
Image Quality Issues
check for both

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

2 participants