MrzCameraScanner

Runs the platform camera and streams a MrzScanResult for analysed frames on results.

The scanner draws nothing and never requests the camera permission. It reports a capture failure as a CameraError on results and does not throw from the stream.

Since

0.2.0

Properties

Link copied to clipboard
abstract val results: Flow<MrzScanResult>

The stream of results for analysed frames, including capture errors.

Functions

Link copied to clipboard
abstract fun start()

Starts the camera session and begins emitting on results.

Link copied to clipboard
abstract fun stop()

Stops the camera session, so results emits nothing until the next start.