NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
728 stars 176 forks source link

How can I recognize this QRCode image? #97

Open er778899789 opened 3 years ago

er778899789 commented 3 years ago

I use pyzbar to recognize and decode QRCode images. If the image is normal and it can decode perfectly. But if I want to recognize the image like below, It will show empty result. I use Iphone 11 camrea to recognize this image, It can get result perfectly. Does Pyzbar can not recognize broken images?

2021-04-27-11-21-0001

sylchuppies commented 3 years ago

Having similar problems. Any solutions? I have QR codes that are not facing flat towards the screen, or the QR code is folded with creases. Iphone can read. All android OS, Pyzbar, etc cannot read. Are iPhones using a different algorithm or have extra corrections built in?

er778899789 commented 3 years ago

@sylchuppies Hi! I think it probably have QR codes restore algorithm in their program. My situation is when I get the image through scanner, and the image can not be read by any QR codes recognized apps or Iphone. If I take a photo with that image, and the image can be recognized. Maybe the scanner will damage the image. Finally, I find the product to recognized instead of developing by myself.