UniversalScanEngine class
Orchestrates ML Kit vision AI models via google_mlkit_commons and routes camera/image/bytes inputs to specialized document and payload parsers.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Whether the scan engine is initialized.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Closes and disposes active vision resources.
-
initialize(
) → void - Initializes underlying vision AI framework.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processAsset(
String assetPath, ScanMode mode) → Future< ScanResult> - Processes an image loaded from a Flutter asset path.
-
processBytes(
Uint8List bytes, ScanMode mode, {int width = 640, int height = 480}) → Future< ScanResult> - Processes raw byte buffer directly from memory.
-
processImageFile(
String imagePath, ScanMode mode) → Future< ScanResult> - Processes an image from a local file path with enhanced precision.
-
processInputImage(
InputImage inputImage, ScanMode mode, {String? imagePath}) → Future< ScanResult> -
Processes an ML Kit
InputImagefor the specified ScanMode. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited