Skip to content

QRCodeDetector - QR Code detected but no decoded text #23249

@EmilienPluvinage

Description

@EmilienPluvinage

Expected behaviour

I tried to decode the following qrCode:
result

The expected output is the string : "The key is /qrcod_OMevpf" (which was confirmed by a qrcode scanner app from my phone).

Actual behaviour

The QR Code was detected but the decoded text is empty.

I opened a thread on stackoverflow and other users have confirmed having the same issue with this image.

Steps to reproduce

    qrCodeDetector = cv2.QRCodeDetector()
    decodedText, points, _ = qrCodeDetector.detectAndDecode(image)
    if points is not None:
    # QR Code detected handling code
        print("QR code detected")
        print(decodedText)    
    else:
        print("QR code not detected")```


Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions