journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.68k stars 1.26k forks source link

GS1 and FNC1 chars in linear barcodes #756

Open AlmightyCZ opened 4 days ago

AlmightyCZ commented 4 days ago

Description of the problem:

I am trying to scan barcodes containing GS1 (FNC1) characters, but it does not work for linear barcodes. It works correctly for 2D codes on European medicine packages, where the characters are properly included, allowing for GS1 format parsing.

Is there a way to scan linear barcodes with FNC1 characters?

Which library version are you using? 4.3.0

Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0) Samsung Galaxy S23, Android 14.0

Does the same happen on other devices or an emulator? Yes

Sample codes

This one doesn't work. It should return 020061414100041815000214104512XA[FNC1]3720 gs1-128

This one does Returns 010859506093317421183802357928[FNC1]1723113010GA9711 Screenshot 2024-07-01 at 13 44 26