문제

When I encode one character as a 1D code 128 barcode, i.e. 'F' or 'M', Zxing doesn't decode it. I first found this issue in my own app where I integrated the zxing source code. Then I checked the original Zxing standalone app as well, just to make sure it wasn't an issue with my integration, but also the standard Zxing app does not decode barcodes of 1 character length.

For example:

enter image description here

doesn't work.

But if the encoded string in the barcode is two or more characters long, i.e. 'AB', 'FF' or 'MM' it works fine. Why does it not work with 1 character length? A bug in zxing?

도움이 되었습니까?

해결책

It was a limitation built into the code in the past to reduce false positives. Based on your bug, it's been found to be no longer necessary and has been removed in the current svn head.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top