vision-camera-code-scanner icon indicating copy to clipboard operation
vision-camera-code-scanner copied to clipboard

if barcode EAN-13 starts with zero, scanner use format UPC-A

Open tim7on opened this issue 3 years ago • 3 comments
trafficstars

Hello, today I get interest bug, if with this lib we scan barcode with format EAN-13 (13 digits) which starts with zero. Lib start thing that is Format Type UPC-A which is 12 digits. I know, I can manually add 0 but its can make problems with UPC-A. And now I need both of this formats. Any solution for this ?

tim7on avatar May 17 '22 11:05 tim7on

any updates ?

codeapp17 avatar Oct 25 '22 18:10 codeapp17

Bump; it seems that manually setting the barcode type to BarcodeFormat.EAN_13 does nothing in this case, as the first leading zero is still ignored - effectively turning an EAN-13 into an UPC-A.

brenodt avatar Mar 08 '23 12:03 brenodt