android-vision
android-vision copied to clipboard
Slow 1D BarCode scanning
I'm testing 1D barcode scanning on a Moto G 1st gen. I need the users of my application to be able to scan barcodes on products.
I find 1D BarCode scanning pretty slow. In particular, it seems the cellphone must be "put in parallel to the barcode" in order to recognize it efficiently. This is not always easy considering the variety of products packages on the market and the possible position of the barcode on those.
I guess this is not caused by the low-end (Moto G)camera specifications, because the BarCode Scanner from ZXing is somewhat more efficient recognizing barcodes in the same cellphone.
I'm already limiting the accepted barcodes formats to only what i need, in order to accelerate decoding. Also, i'm using setAutoFocusEnabled(true).
What are the best advices to optimize 1D barcode recongition?
Some of what you describe is expected. In general, nearly every barcode API only detects barcodes that are aligned near some multiple of 90 degrees. However, it's surprising that you get results faster with ZXing.
Which barcode formats are you trying to read, and how much of a latency difference between our API and ZXing are you seeing?
It would also be helpful to see an example image that exhibits the problem.
1D barcode scanning is very slow