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

Some datamatrix do not recognize ASCii 026 separator (GS) #92

Open
Voltron079 opened this issue Jan 6, 2023 · 2 comments
Open

Some datamatrix do not recognize ASCii 026 separator (GS) #92

Voltron079 opened this issue Jan 6, 2023 · 2 comments

Comments

@Voltron079
Copy link

Hi all!
When decoding, I encountered the fact that part of the datamatrix of the GS1 standard does not see the GS separators.
On the attached screen, the first two lines are read correctly. But the next four have no separator.
Although in fact they are and should be reflected. In the last line, I scanned the same datamatrix with a regular laser scanner and the separator is visible. That is, according to my conclusion, this is not a problem of printing the datamatrix itself, but a decoding problem.
DM decode
DM1

Code:
rezult = decode(thresh2, timeout=10, shrink=1, max_count=1, threshold=100, min_edge=90, max_edge=200, corrections=3)

Tell me what can be done in this case, maybe I'm doing something wrong?

@tugberkgoc
Copy link

I am having the same issue +1

@tugberkgoc
Copy link

tugberkgoc commented Jan 23, 2023

I just forked and solve the problem here

For the decode function, you need to pass fnc1=0x001d

PR here: #93

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