Can't detect QR code on Amazon Kindle devices
daentech opened this issue · comments
I'm not sure if this is a known issue, but I'm having some problems detecting a QR code on a kindle tablet.
The QR codes are readable on all other (Google Play) android devices.
I haven't had a chance to investigate thoroughly yet but just want to know if this had a solution I couldn't find. I'll be able to take a proper look over the next couple of days and I can add more to the ticket when I know more.
Would an image of size 480x720 be sufficient to detect?
We're also using the hybrid binarizer and passing in a binary bitmap to the decode method.
Edit:
I've investigated a little further:
- the zxing sample app (Barcode Scanner) is capable of reading QR codes on a kindle tablet device
- Updating the version of zxing used by this lib (one was released on the 25th Oct) doesn't make a difference
- We had overridden the QRCodeReaderView in our app, but switching back to the library provided one still can't scan QR codes
- Using the sample app from this repo it won't detect the QR on a kindle tablet. The yellow dots never appear.
I'll keep looking to see if I can work out why.
I've investigated this further and it looks like something strange is happening with kindle preview images.
The camera is reporting a preview of size: 720x480 but the image data itself looks to be an image (roughly) of size 715x480. Hardcoding these values on my kindle tablet makes the QR scanner work. I can't find anywhere in the camera or preview where these values would come from, though...
I have attached a couple of screenshots and the raw image data (I guess a byte array, with .txt
extension so github will allow it
imageData.txt) from the camera just to see if you can think of a reason this data would be the wrong dimensions.