简体   繁体   English

为什么 google mlkit 条码扫描器多次扫描同一个条码,甚至扫描其中的一部分

[英]why google mlkit barcode scanner scan the same barcode multiple times and even some part of it

i am using camerax and google mlkit barcode-scanning library to make a barcode reader.我正在使用 camerax 和谷歌 mlkit 条形码扫描库来制作条形码阅读器。 and the app scan qrcode is work fine, but the code format is barcode, the result will different.并且应用程序扫描二维码工作正常,但代码格式是条形码,结果会有所不同。 the barcode sometimes will scan multiple times for example, there are tree barcodes but the scanner get the four or five results.条码有时会扫描多次,例如,有树条码,但扫描仪会得到四五个结果。 anybody knows the issue and any help is appreciate.任何人都知道这个问题,任何帮助表示赞赏。 pic 1 pic 2图一图二

I think it's kind of expected.我认为这是一种预期。 Due to the bias of image quality and barcode position, it's possible that part of the real barcode image is also identified as a barcode from the perspective of barcode detector.由于图像质量和条码位置的偏差,从条码检测器的角度来看,部分真实条码图像也可能被识别为条码。

There really is nothing you can do about that, it just depends on the image/frame given to the analyzer.对此您真的无能为力,这仅取决于提供给分析器的图像/帧。 There are many factors that can effect the scanning of the barcode like light, angle of image/frame, image quality of the barcode, or quality of the barcode itself that can cause duplication to be found.有许多因素会影响条码的扫描,例如光线、图像/框架的角度、条码的图像质量或条码本身的质量,这些因素可能会导致发现重复。

You will just need to have a way to remove ones that you dont want你只需要有一种方法来删除你不想要的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM