-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
