[英]ZXing Android Studio barcode scanner not working with large barcodes
我认为问题不在于ZXing 。
由于问题中给出的条形码是Code 128格式,这是ZXing支持的,并且ZXing Online Decoder成功扫描了有问题的图像,扫描图像的输出为:
+--------------------+----------------------------+ | Raw text | DSEC3743T0040001P96837678 | +--------------------+----------------------------+ | Raw bytes | 68 24 33 25 23 63 25 2b | | | 64 34 10 63 04 00 01 64 | | | 30 63 60 53 4c 4e 54 6a | +--------------------+----------------------------+ | Barcode format | CODE_128 | +--------------------+----------------------------+ | Parsed Result Type | TEXT | +--------------------+----------------------------+ | Parsed Result | DSEC3743T0040001P96837678 | +--------------------+----------------------------+
图片太长,无法用某些手机的相机正确扫描,因为ZXing在相机开启时会收到来自屏幕的回叫,因此请确保条形码正确聚焦并且相机不会晃动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.