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 display the captured barcode after stoping the barcode scanner? #36

Open jpabanil opened 6 years ago

jpabanil commented 6 years ago

I need to disable the multiple barcode detection based on this https://stackoverflow.com/questions/42112519/how-to-disable-multiple-barcode-detection-android-vision-api

KingsMentor commented 6 years ago

@jpabanil you support specific barcode format with:

barcodeCapture.setBarcodeFormat(Barcode.EAN_8|Barcode.GEO);

There are other available options you can explore (from the Barcode class)


    public static final int ALL_FORMATS = 0;
    public static final int CODE_128 = 1;
    public static final int CODE_39 = 2;
    public static final int CODE_93 = 4;
    public static final int CODABAR = 8;
    public static final int DATA_MATRIX = 16;
    public static final int EAN_13 = 32;
    public static final int EAN_8 = 64;
    public static final int ITF = 128;
    public static final int QR_CODE = 256;
    public static final int UPC_A = 512;
    public static final int UPC_E = 1024;
    public static final int PDF417 = 2048;
    public static final int AZTEC = 4096;
    public static final int CONTACT_INFO = 1;
    public static final int EMAIL = 2;
    public static final int ISBN = 3;
    public static final int PHONE = 4;
    public static final int PRODUCT = 5;
    public static final int SMS = 6;
    public static final int TEXT = 7;
    public static final int URL = 8;
    public static final int WIFI = 9;
    public static final int GEO = 10;
    public static final int CALENDAR_EVENT = 11;
    public static final int DRIVER_LICENSE = 12;