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.67k stars 606 forks source link

Phone pictures not being read correcly #94

Open brennongs opened 6 years ago

brennongs commented 6 years ago

see #58 -- I am having the same issue, namely that any picture taken on either iOS or Android devices (I've tested only iPhone X and 7 and LG G6) are parsed incorrectly as not having a QR in them. Example photos included.

webcam-ss This photo works. It is an iPhone X screenshot of a picture taken with my webcam. However, the following picture, which is an iPhone 7 capture, does not. webcam-cp

the following were all taken on LG G6: 20180824_144512 20180824_174020 20180824_144601

I would love to help where I can, but I'm pretty junior and afraid of OSS 😬

Let me know what I can do!

brennongs commented 6 years ago

Oh, of note, these are jpegs and I'm using jpeg-js for my decoder.

brennongs commented 6 years ago

qrtest New development! This issue also affects captures by the raspberry pi camera module. The above was taken by the camera module (cannot be read), the below is the same code taken by my webcam (can be read). image I'm pumping all of these photos through the same code, and have switched over to use png's in an attempt to resolve the issue.

SunburnedGoose commented 5 years ago

Could this be related to the resolution or file size of the images? The back camera can take VERY large photos vs the screenshot, front camera, or a webcam.