Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.62 KB

File metadata and controls

32 lines (23 loc) · 1.62 KB

1D/2D Barcode Detection with Android ARCore

This sample project demonstrates how to use ARCore alongside the Dynamsoft Barcode Reader to detect multiple barcodes and create anchors for them within an AR scene. The project is based on the ARCore ML sample.

android-arcore-barcode-detection.mp4

Prerequisites

Getting Started

  1. Obtain a trial license key for the Dynamsoft Barcode Reader from here.

  2. Replace the placeholder with your license key in MainActivity.kt.

    BarcodeReader.initLicense("LICENSE-KEY") { isSuccessful, e ->
      runOnUiThread {
        if (!isSuccessful) {
          e.printStackTrace()
          Log.e(TAG, "Failed to verify the license: $e")
        }
      }
    }
  3. Build and run the sample on your ARCore-compatible device.

    android-arcore-barcode-qr-detection

Blog

Labeling Multiple Barcodes with Augmented Reality and Dynamsoft Barcode Reader