piderman314 / bardecoder

Detect and decode QR Codes, written in 100% Rust.
MIT License
275 stars 34 forks source link

Fails to decode rather obvious QR code #35

Closed vi closed 3 years ago

vi commented 3 years ago

The library, initialized using bardecoder::default_decoder() seems to fail to decode rather obvious QR code:

test

zbarimg command line tool, for example, does successfully decode this case:

$ zbarimg test.png
QR-Code:0216
scanned 1 barcode symbols from 1 images in 0.04 seconds

https://crates.io/crates/zbar-rust also succeeds in decoding the image.

piderman314 commented 3 years ago

Yes, this is because the perspective is not head-on, and my algorithm isn't the best in those cases. I'll see if I can improve it a little bit.

vi commented 3 years ago

If the library does not typically scan what can be scanned by a smartphone then README should state limitations and recommended use cases.

piderman314 commented 3 years ago

This should be improved in version v0.3.0