YOLOResult class

Represents a detection result from YOLO models

Constructors

YOLOResult.new({required int classIndex, required String className, required double confidence, required Rect boundingBox, required Rect normalizedBox, List<List<double>>? mask, List<Point>? keypoints, List<double>? keypointConfidences})
YOLOResult.fromMap(Map map)
Create a YOLOResult from a map (used for platform channel communication)
factory

Properties

boundingBox Rect
Bounding box of the detected object
final
classIndex int
Index of the detected class
final
className String
Name of the detected class (e.g. "person", "car")
final
confidence double
Confidence score between 0.0 and 1.0
final
hashCode int
The hash code for this object.
no setterinherited
keypointConfidences List<double>?
Keypoint confidence values for pose estimation tasks (nullable)
final
keypoints List<Point>?
Keypoints for pose estimation tasks (nullable)
final
mask List<List<double>>?
Segmentation mask for segmentation tasks (nullable)
final
normalizedBox Rect
Normalized bounding box coordinates (values between 0.0 and 1.0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert this YOLOResult to a map (used for platform channel communication)
toString() String
A string representation of this object.
override

Operators

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