1

i am using camerax and google mlkit barcode-scanning library to make a barcode reader. 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

国庆张
  • 9
  • 2
  • Do you mean there are three barcodes in a single image, and then it will return 4 or 5 results for it? – Shiyu Sep 16 '20 at 17:29
  • yes, one barcode may scan twice – 国庆张 Sep 17 '20 at 07:29
  • Could you provide the image, so that we could take a look? Also, is the same barcode scanned twice? or is it identified as two barcode? To tell that, you could check whether the returned barcode information is duplicate or not. – Shiyu Sep 18 '20 at 17:44
  • ok, i will upload the image later. it's same barcode but identified as two barcode and the value is partial of it – 国庆张 Sep 21 '20 at 07:15
  • @Shiyu i have upload the screenshot of app, please take a look – 国庆张 Sep 22 '20 at 05:49

2 Answers2

0

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.

zhouyi
  • 226
  • 1
  • 4
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

tyczj
  • 71,600
  • 54
  • 194
  • 296