Skip to content

able to detect but not decode this qr code, but both iOS and Android can #29

@pichuang1984

Description

@pichuang1984

Hello,

I am working on challenging, distorted QR code detect and decode. In this particular example attached below, it seems that QReader is able to detect but not decode the QR code, which is not really surprising since the QR code quality is low and distorted.

However, it seems that both iphone and android camera is able to detect and decode this example, if I display it on a computer monitor. Wondering if there are additional preprocessing you have in mind that may help in this case?

Below is the sample code i used:

from qreader import QReader
import cv2


file_path = 'qrcode_test.png'
# Create a QReader instance
qreader = QReader()

# Get the image that contains the QR code
image = cv2.cvtColor(cv2.imread(file_path), cv2.COLOR_BGR2RGB)

# Use the detect_and_decode function to get the decoded QR data
decoded_text = qreader.detect_and_decode(image=image)
print(decoded_text)

qreader_test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions