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

Binary/independent mode #1697

Open
eoreshnikov opened this issue Jan 15, 2024 · 4 comments
Open

Binary/independent mode #1697

eoreshnikov opened this issue Jan 15, 2024 · 4 comments

Comments

@eoreshnikov
Copy link

Problem:
Given: a barcode contains binary data.
After reading the code, the data is incorrectly converted into a string for "card id"
Based on the string, a new barcode is recreated, which contains incorrect data.

For example, the Electronic Compulsory Health Insurance Policy of the Russian Federation is in PDF417 format and contains binary data.

Suggested solution:
Add an option, when selected, the barcode is stored as it was scanned (or the photo is simply set), and the “card id” field must be specified manually by the user.

@TheLastProject
Copy link
Member

The "card id" field shouldn't show anything except the value.

Is this a duplicate of #1496?

@eoreshnikov
Copy link
Author

eoreshnikov commented Jan 16, 2024

Is this a duplicate of #1496?

This is a related and similar problem.
But #1496 suggests updating the ZXing library.

I believe that the problem can be solved differently.

Current chain: Source barcode -> Scanning -> Receiving binary array -> Converting binary array to string to display card-id (this is where data corruption occurs) -> creating a new barcode to display.
As a result, the original barcode does not match the new one.

For example (russian) , the binary array in a barcode consists of:

code_type + card_id + First name, Last name (in non-standard 6-bit encoding) + others.

It will not be possible to display this in the card-id field.

BUT! You can allow the user to simply write the card number in the card-id field, and use a photo of the original barcode instead of the barcode.

@TheLastProject
Copy link
Member

Do you have an example barcode/qr code and card-id value this happens to?

BUT! You can allow the user to simply write the card number in the card-id field, and use a photo of the original barcode instead of the barcode.

You could set the barcode type to none and use an image as front photo but of course it'd be much better if this was fixed.

@eoreshnikov
Copy link
Author

eoreshnikov commented Jan 29, 2024

Do you have an example barcode/qr code and card-id value this happens to?

My barcode contains personal information and therefore I do not want to publish it here. I also can’t generate test code, since it’s not the simplest algorithm.

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

No branches or pull requests

2 participants