1

我正在使用 camerax 和 google mlkit 条形码扫描库来制作条形码阅读器。并且应用程序扫描二维码工作正常,但代码格式是条形码,结果会有所不同。条码有时会扫描多次,例如,有树形条码但扫描仪会得到四五个结果。任何人都知道这个问题,任何帮助都将不胜感激。 图 1 图 2

4

2 回答 2

0

我认为这是一种预期。由于图像质量和条码位置的偏差,从条码检测器的角度来看,有可能部分真实条码图像也被识别为条码。

于 2020-10-02T21:04:16.993 回答
0

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

于 2020-10-02T21:13:46.247 回答