PreprocessingContext class

Context provided to FramePreprocessor with current image analysis metrics.

Constructors

PreprocessingContext({required double luminosity, required double blurScore, required double contrastScore, required ScanMode mode, bool torchEnabled = false, bool isFirstFrame = false, int frameIndex = 0})
const

Properties

blurScore double
Blur score from Laplacian variance (higher = sharper).
final
contrastScore double
Contrast ratio (0.0–1.0).
final
frameIndex int
Frame index in the current session.
final
hashCode int
The hash code for this object.
no setterinherited
isFirstFrame bool
Whether this is the first frame in a new scanning session.
final
luminosity double
Normalized average luminosity (0.0–1.0).
final
mode ScanMode
Current scan mode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
torchEnabled bool
Whether torch/flash is currently enabled.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited