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

My barcode scans and shows number, but displays the wrong format #44

Open
TheLastProject opened this issue Oct 24, 2020 · 5 comments
Open
Labels
common: uncommon Most users are unlikely to come across this or unexpected workflow severity: major Severely degrades major functionality or product features, with no satisfactory workaround state: help wanted I looked into this issue but couldn't solve it quickly type: bug Something isn't working

Comments

@TheLastProject
Copy link
Member

Issue by myuseraccount
Thursday May 30, 2019 at 18:11 GMT
Originally opened as brarcher/loyalty-card-locker#302


I have a library card that the camera scans successfully and captures the number, but the displayed barcode doesn't match the card. In fact, when I go to edit the entry, none of the displayed barcode options are correct. It seems that the scanning library supports other barcode formats than the ones in the list, but it just randomly guesses one when it doesn't actually support that one for display within the app. Took me awhile to figure out why it wouldn't scan off the screen.

How do I find out what format the barcode is, so I can request support for this type?
IMG_20190530_103413

@TheLastProject TheLastProject added type: bug Something isn't working state: help wanted I looked into this issue but couldn't solve it quickly labels Oct 24, 2020
@TheLastProject
Copy link
Member Author

Comment by myuseraccount
Thursday May 30, 2019 at 18:20 GMT


Found a tool online that reads it: it says it's just Codabar, but neither this app nor another one I tried gives the correct bar output. I did get an error, from Skunk for Pebble: "Codabars must begin and end with A, B, C, or D!"

@TheLastProject
Copy link
Member Author

Hmm, this is quite a weird issue. I see that the app does scan it successfully with the correct ID and as Codabar, but I see the barcode itself looks different...

@fantasio31
Copy link

Hello,

Same issue on my side.

I put the original barcode from my provider (fidelity card in France), but computed barcode in app is different. The first 3 bars are not displayed.

index

@TheLastProject TheLastProject added common: uncommon Most users are unlikely to come across this or unexpected workflow severity: major Severely degrades major functionality or product features, with no satisfactory workaround labels Feb 5, 2022
@QJKX
Copy link

QJKX commented Mar 29, 2024

I tried a Codabar library card and it scans, but the code in Catima doesn't quite match visually - the stop code is missing.

To support accurate recreations of Codabar barcodes, Catima need to read and store the non-numeric ABCD characters in a Codabar code.

https://en.wikipedia.org/wiki/Codabar

Wikipedia says

The characters are divided into three groups, based on the number of wide elements:

The basic 12 symbols (digits 0–9, dash, and $) are encoded using all possible combinations of one wide bar and one wide space.
An additional 4 symbols (:/.+) are encoded using 3 wide bars and no wide spaces.
4 start and stop symbols (designated ABCD, or in some specifications, EN*T) are encoded using one wide bar and two wide spaces.

The wikipedia example barcode has a start and stop code like my card - confusingly it's not written in the number under the barcode, but the article mentions it starts with an A and ends with a B.

@QJKX
Copy link

QJKX commented Mar 29, 2024

zxing/zxing#179 (comment)

You can specify the hint DecodeHintType.RETURN_CODABAR_START_END to have them returned as part of the content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common: uncommon Most users are unlikely to come across this or unexpected workflow severity: major Severely degrades major functionality or product features, with no satisfactory workaround state: help wanted I looked into this issue but couldn't solve it quickly type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants