QRCodeDetector() not working
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
These might be issues Bounding Box Detection Failure Image Quality Issues check for both