FramePreprocessor class abstract
Abstract interface for pluggable frame preprocessing chains.
Allows different preprocessing strategies to be composed and swapped based on scan mode, lighting conditions, and content type.
The preprocessing pipeline runs in a background isolate before detection, enhancing the image for optimal recognition accuracy.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Human-readable name of this preprocessor.
no setter
- priority → int
-
Priority for ordering in a preprocessing chain (higher = runs first).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canHandle(
ScanMode mode) → bool - Whether this preprocessor can handle the given scan mode.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
Uint8List gray, int width, int height, PreprocessingContext context) → PreprocessedFrame - Processes a raw grayscale frame and returns the enhanced result.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited