You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issues decoding the following qr code image sing zxing-cpp python binding. However, both the zxing online decoder (https://zxing.org/w/decode.jspx) and the iphone camera qr code scan can both decode it successfully.
Below is my code snappet:
import cv2, zxingcpp
file_path = 'test_image.png'
img = cv2.imread(file_path)
barcodes = zxingcpp.read_barcodes(img)
for barcode in barcodes:
print('Found barcode:'
f'\n Text: "{barcode.text}"'
f'\n Format: {barcode.format}'
f'\n Content: {barcode.content_type}'
f'\n Position: {barcode.position}')
if len(barcodes) == 0:
print("Could not find any barcode.")
Any hint/suggestion on why python binding is not working?