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

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

Open
pichuang1984 opened this issue Jul 13, 2024 · 0 comments

Comments

@pichuang1984
Copy link

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

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

1 participant