KingsMentor / MobileVisionBarcodeScanner

Barcode Scanner powered by Mobile Vision Api
http://belvi.xyz/posts/Mobile-Vision-Barcode-Scanner
MIT License
540 stars 109 forks source link

How to set SINGLE_AUTO to the Barcode Scanner? #35

Open jpabanil opened 6 years ago

jpabanil commented 6 years ago

Hi,

I would like to set SINGLE_AUTO to the Barcode Scanner. How can I possible do that? I need to solve it asap.

KingsMentor commented 6 years ago

kindly explain what you mean by SINGLE_AUTO. If it is what i think , the snippet below should be able to help.

barcodeCapture.setSupportMultipleScan(false);
barcodeCapture.setTouchAsCallback(false);

This will allow a single scan and would not require the user taping the screen to process the frame.

jpabanil commented 6 years ago

This is the solution I want

https://stackoverflow.com/questions/42112519/how-to-disable-multiple-barcode-detection-android-vision-api