Barcode

interface Barcode

Represents a single detected Barcode.

A Barcode is produced by the BarcodeScanner or the Barcode Scanner output (createBarcodeScannerOutput).

See BarcodeScanner.scanCodes and BarcodeScanner.scanCodesInImageAsync for information about Barcode coordinate systems.

val barcode = ...
println("Barcode value: ${barcode.rawValue}")

Properties

Link copied to clipboard
abstract val boundingBox: Rect

The Barcode's bounding box. The coordinates are relative to the input Frame or Image.

Link copied to clipboard
abstract val cornerPoints: List<Point>

The Barcode's corner points. The coordinates are relative to the input Frame or Image.

Link copied to clipboard
abstract val displayValue: String?

The Barcode's value in a user-friendly format.

Link copied to clipboard
abstract val format: BarcodeFormat

The format of this Barcode.

Link copied to clipboard
abstract val rawBytes: ByteArray?

The Barcode's value in raw bytes.

Link copied to clipboard
abstract val rawValue: String?

The Barcode's raw value as a string.

Link copied to clipboard

The type of the Barcode's value.