MultiTaskYOLOController class
Controller for MultiTaskYOLOView. Pass to the widget and call capturePhoto to take a still JPEG from the live camera stream.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTorchEnabled → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
capturePhoto(
) → Future< Uint8List> - Capture a JPEG still from the current camera frame. Returns the JPEG bytes, or throws if the camera is not ready.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setTorch(
bool enable) → Future< bool> -
Turn the camera torch on (
enable= true) or off (enable= false). Returns the actual torch state after the call —falsewhen the device has no torch or the call is made before the view is attached. -
stop(
) → Future< void> - Stops the camera and releases all CoreML model predictors from memory. Call this before removing MultiTaskYOLOView from the tree so GPU/ANE memory is freed immediately rather than waiting for a potentially-delayed deinit.
-
toggleTorch(
) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited