Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 750 Bytes

File metadata and controls

15 lines (13 loc) · 750 Bytes

BarcodeScanner

BarcodeScanner is a sample application which uses Google Vision API. There is ability to limit detection area by setting parameters in CameraSourcePreview view. Works for portrait and landscape mode. Supporting flash and beep sound on barcode detection.

Preview

Launching Scanner Activity

            Intent(this, BarcodeScannerActivity::class.java).apply {
                putExtra(BarcodeScannerActivity.EXTRA_BEEP_ENABLED, true)
                putExtra(BarcodeScannerActivity.EXTRA_FLASH_ENABLED, true)
            }.also {
                startActivityForResult(it, 9001)
            }