BarcodeDetector

Detects barcodes in image files.

Use use or close the detector when it is no longer needed to release the barcode scanner.

Constructors

Link copied to clipboard
constructor(context: Context, codeTypes: Collection<Barcode.Type>? = null)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun detect(imageFile: File): List<SpatialBarcode>

Detect the configured barcode formats and their positions in an image.

Link copied to clipboard
suspend fun preloadModels()

Request installation of the barcode detection models.