WxScanWorker class

A scanner running in a worker.

Properties

hasDetector bool
Whether the CNN detector loaded.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasSuperResolution bool
Whether super resolution loaded.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Stops the worker. Using it afterwards throws.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scanFrame(Uint8List plane, int width, int height, {required int rowStride, required int rotation, required bool mirror}) Future<ScanOutcome>
Decodes a camera frame: a Y plane with a row stride, rotated upright.
scanGray(Uint8List gray, int width, int height) Future<ScanOutcome>
Decodes an upright, tightly packed grayscale image.
scanPixels(Uint8List pixels, int width, int height, int format) Future<ScanOutcome>
Decodes a colour image, converting it to grayscale first. format is a WxScanPixelFormat value.
scanPixelsJson(Uint8List pixels, int width, int height, int format) Future<String?>
Decodes a colour image and hands back the document itself, for a caller that forwards documents.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

start({required String workerUrl, required Uint8List wxscanWasm, String? tfliteUrl, Uint8List? detectModel, Uint8List? srModel}) Future<WxScanWorker>
Starts a worker and gives it everything it needs.