scan From Nv21
abstract fun scanFromNv21(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int): BarcodeScannerResult?
Scan barcodes from the nv21 frame.
For efficiency, reuse the same scanner object between scans. The barcode filters list is taken from the current configuration state.
Parameters
nv21
The YUV preview frame.
width
The width of the preview frame.
height
The height of the preview frame.
frame Orientation
The frame orientation degrees.
abstract fun scanFromNv21(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int, finderRect: Rect?): BarcodeScannerResult?
Scan barcodes from the nv21 frame within the viewfinder rectangle.
For efficiency, reuse the same scanner object between scans. The barcode filters list is taken from the current configuration state.
Parameters
nv21
The YUV preview frame.
width
The width of the preview frame.
height
The height of the preview frame.
finder Rect
decode area
frame Orientation
The frame orientation degrees.