MultiTaskYOLOView class
A Flutter widget that runs detect, classify, and optionally segment simultaneously on a single camera stream — no JPEG round-trip, no MethodChannel per frame.
Pass segmentModelPath to enable a third segmentation model running in parallel.
The onStreamingData callback fires for every result; check data["type"]
("detect", "classify", or "segment") to route results.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MultiTaskYOLOView
Constructors
- MultiTaskYOLOView({Key? key, required String detectModelPath, required String classifyModelPath, String? segmentModelPath, MultiTaskYOLOController? controller, MultiTaskStreamCallback? onStreamingData, String lensFacing = 'back', bool useGpu = true, double confidenceThreshold = 0.25, double iouThreshold = 0.7})
-
const
Properties
- classifyModelPath → String
-
final
- confidenceThreshold → double
-
final
- controller → MultiTaskYOLOController?
-
final
- detectModelPath → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iouThreshold → double
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lensFacing → String
-
final
- onStreamingData → MultiTaskStreamCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentModelPath → String?
-
Optional segmentation model. When non-null, runs in parallel with detect + classify.
Results arrive via onStreamingData with
data["type"] == "segment".final - useGpu → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MultiTaskYOLOView> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited