WorkerController<T> class
This is a library that converts streaming images from a camera to luminance information for easy processing, and supports parallel processing by Isolate.
Constructors
- WorkerController(T? workerMethod(Luminances))
Properties
- camera ↔ CameraController?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- started → bool
-
True when images from the camera are being streamed.
no setter
- workerMethod → T? Function(Luminances)
-
final
Methods
-
dispose(
) → Future< void> - Releases the resources.
-
init(
{ResolutionPreset resolution = ResolutionPreset.veryHigh}) → Future< void> - Initializes the camera and worker.
-
makeImage(
Luminances luminances) → Future< Image> - Create an Image from the Luminances class. It can be used for checking the processing results.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
{int maxWidth = 0}) → Future< Stream< T?> > -
Start streaming images.
If
maxWidth
is specified, the image will be scaled down while maintaining the aspect ratio. -
stop(
) → Future< void> - Stop streaming images.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited