cozmo / jsQR

A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
https://cozmo.github.io/jsQR/
Apache License 2.0
3.69k stars 607 forks source link

feature request: better perspective transform #187

Open hyansuper opened 4 years ago

hyansuper commented 4 years ago

jsQR is one of very few qrcode readers I can find online in javascritpt, and it works very well. but when detecting qrcode from non-90-degree-angle, the image became distorted, and unable to read the qrcode. I don't know if you can make it automatically preprocess the image and rectify perspectively distorted image. the opencv-python's cv2.QRCodeDetector() can read qrcode from distorted image (captured from 45 degree angle), can you achive similar functionality?