markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.38k stars 114 forks source link

Wrong decoding with complex datamatrix code #391

Closed eule68 closed 11 months ago

eule68 commented 1 year ago

I encountered a wrong decoding with a complex datamatrix code. The code has 96 bytes but was decoded with 97 bytes. One byte were decoded wrong compared to 2 reference scanners. I used Scanbot and a commercial machine vision toolbox (Matrox MIL) as reference with identical readings.

As you can see from the attached files BE decodes the 6th character with C3 followed by a 96 what originally was a D6.

Sample code attached. code1 Binary Eye Scanbot SDK Barcode Scanning Binary Eye.txt Scanbot.txt

markusfisch commented 1 year ago

Hm, that looks like a UTF-8 issue 🤔 Thanks for filing an issue! 👍 And sorry for the late reply.

Will investigate…

markusfisch commented 11 months ago

Fixed in https://github.com/markusfisch/BinaryEye/commit/a098fcb48cb77d2b227875de17e7cfa39a4d744d

There will be a new version soon.