CameraFrameEvent

Telemetry emitted once per analysed frame, with diagnostics and no document data.

It holds counts, booleans, a coarse confidence, the detected format, an outcome, how many fillers the reader added to a short name line, and how many rows came from a second read. It never holds recognized text or a parsed field.

Since

0.2.0

Constructors

Link copied to clipboard
constructor(outcome: CameraFrameOutcome, recognizedLineCount: Int, mrzRegionFound: Boolean, ocrConfidence: Float?, detectedFormat: MrzFormat?, fillerPaddingAdded: Int = 0)

Creates an event without second-read rows.

constructor(outcome: CameraFrameOutcome, recognizedLineCount: Int, mrzRegionFound: Boolean, ocrConfidence: Float?, detectedFormat: MrzFormat?, fillerPaddingAdded: Int = 0, secondReadRows: Int)

Creates an event with an explicit second-read row count.

Types

Link copied to clipboard
object Companion

Constants for CameraFrameEvent.

Properties

Link copied to clipboard

The MRZ format when the parse produced a document, otherwise null (including a failure).

Link copied to clipboard

How many < fillers the reader added at the end of a name line that was read short; 0 when no line was padded. It is a count only, never the line or its text. See MrzFillerPadding.addedCount.

Link copied to clipboard

Whether an MRZ-shaped candidate was located.

Link copied to clipboard
open override val name: String

Event name: mrz.camera.frame.

Link copied to clipboard

Coarse aggregate OCR confidence in [0, 1], or null if unavailable.

Link copied to clipboard

What analysing the frame produced.

Link copied to clipboard

How many text lines OCR recognized in the frame.

Link copied to clipboard

How many rows of this frame came from a second read; 0 when none did.

Functions

Link copied to clipboard
Link copied to clipboard
operator fun component2(): Int
Link copied to clipboard
operator fun component3(): Boolean
Link copied to clipboard
operator fun component4(): Float?
Link copied to clipboard
operator fun component5(): MrzFormat?
Link copied to clipboard
operator fun component6(): Int
Link copied to clipboard
operator fun component7(): Int
Link copied to clipboard
fun copy(outcome: CameraFrameOutcome = this.outcome, recognizedLineCount: Int = this.recognizedLineCount, mrzRegionFound: Boolean = this.mrzRegionFound, ocrConfidence: Float? = this.ocrConfidence, detectedFormat: MrzFormat? = this.detectedFormat, fillerPaddingAdded: Int = this.fillerPaddingAdded): CameraFrameEvent

Copies this event while preserving its second-read row count.

fun copy(outcome: CameraFrameOutcome = this.outcome, recognizedLineCount: Int = this.recognizedLineCount, mrzRegionFound: Boolean = this.mrzRegionFound, ocrConfidence: Float? = this.ocrConfidence, detectedFormat: MrzFormat? = this.detectedFormat, fillerPaddingAdded: Int = this.fillerPaddingAdded, secondReadRows: Int): CameraFrameEvent

Copies this event with an explicit second-read row count.

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