Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Mobile / Android

Android Camera2 Barcode Sample

0.00/5 (No votes)
25 Jul 2019MIT 5.5K  

The sample demonstrates how to scan barcodes from fast moving objects by adjusting the shutter speed. The code implementation is based on Android Camera2Basic and Dynamsoft Barcode Reader.

Usage

  1. Get a valid trial license of Dynamsoft Barcode SDK.

  2. Open the project in Android Studio.

  3. Set the license in Camera2BasicFragment.java:

    Java
    mBarcodeReader = new BarcodeReader("LICENSE-KEY"); 
  4. Build and run the app:

    Android Camera2 Barcode

Blog

Android Barcode Detection from Fast Moving Objects

License

This article, along with any associated source code and files, is licensed under The MIT License