Frame

data class Frame(val frame: ByteArray, val width: Int, val height: Int, val frameOrientation: Int, val finderRect: Rect?, val visibleRect: RectF?, val finderInnerThresholdPx: Int, val finderOuterThresholdPx: Int, val cameraModule: CameraModule, val analyzerFrameMirrored: Boolean)

Represents captured frame data and bounds.

Parameters

frame

image in NV21 format

width

width of the image

height

height of the image

frameOrientation

orientation of the image (in degrees)

finderRect

finder overlay area

visibleRect

visible preview area

finderInnerThresholdPx

inner finder threshold

finderOuterThresholdPx

outer finder threshold

cameraModule

the module of the camera that captured this frame.

analyzerFrameMirrored

whether the frame was mirrored for analysis.

Constructors

Link copied to clipboard
constructor()
constructor(frame: ByteArray, width: Int, height: Int, frameOrientation: Int, finderRect: Rect?, visibleRect: RectF?, finderInnerThresholdPx: Int, finderOuterThresholdPx: Int, cameraModule: CameraModule, analyzerFrameMirrored: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int