I am having trouble detecting QR code using Pyzbar. Under perfection condition, I am able to detect the QR code using the original png image. However, when I do video capture from a camera, and then save that frame as in image, pyzbar fails to detect the QR code.
For example, this works
[Decoded(data=b'GOAL', type='QRCODE', rect=Rect(left=16, top=16, width=168, height=168))]
But the following does not even after I manually cropped the surroundings to only show the QR code.
[]
For both of the images, I am using
decode(image, scan_locations=True)
I am wondering what do I need to do in order for pyzbar to decode my QR code image?



