Captured Image

Defined in package com.scandit.datacapture.core

CapturedImage
class CapturedImage

Added in version 8.6.0

An image produced by the SDK — for example a frame’s image, the face / document crop of a captured ID, or a barcode produced by Generate. Exposes the raw RGBA pixels with no PNG/JPEG/base64 encoding cost. For an image you provide to the SDK, use InputImage instead.

width
val width: Int

Added in version 8.6.0

Image width in pixels.

height
val height: Int

Added in version 8.6.0

Image height in pixels.

toRgbaBytes()
fun toRgbaBytes(): ByteArray

Added in version 8.6.0

Returns the uncompressed pixels in RGBA8888 byte order (width * height * 4 bytes).