Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentage of loss as part of result #26

Closed
KyleMaas opened this issue Apr 27, 2020 · 2 comments
Closed

Percentage of loss as part of result #26

KyleMaas opened this issue Apr 27, 2020 · 2 comments

Comments

@KyleMaas
Copy link
Contributor

It would be really handy if, when a barcode is returned, the percentage of bits which had to be corrected could be returned as well. At least for my current application, this information would be really useful to have.

piderman314 added a commit that referenced this issue May 3, 2020
…n some information about the QR Code next to the decoded data #26
@piderman314
Copy link
Owner

Hey, I have implemented a new version of the decoder that also returns some info about the qr. You can replace default_decoder() with default_decoder_with_info() and instead of a String result you get a tuple (String, QRInfo). Said info contains the version, ec_level, total number of bits in the QR Code and number of bits of error corrected.

The data/error counts include both the actual data and error correction data. The error correction algorithm doesn't make a distinction, and usually the actual data doesn't contain nearly the entire capacity anyway.

@KyleMaas
Copy link
Contributor Author

KyleMaas commented May 3, 2020

Excellent. I look forward to trying it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants