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
- An ARCore-compatible device running Google Play Services for AR (ARCore) 1.24 or later.
- Android Studio 4.1 or later.
-
Obtain a trial license key for the Dynamsoft Barcode Reader from here.
-
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") } } }
-
Build and run the sample on your ARCore-compatible device.
Labeling Multiple Barcodes with Augmented Reality and Dynamsoft Barcode Reader