DetectedObjectRect class

A single detected object with its label, confidence, and optional action.

Constructors

DetectedObjectRect({required NormalizedRect rect, required String label, required double confidence, String? action})
const
DetectedObjectRect.fromJson(Map<String, dynamic> json)
factory

Properties

action String?
The player action detected by the YOLO model (e.g., "dribble", "jump-shot", "layup", "defence", "screen", "shot-block", "fall"). Only set for player-* class detections. Null for ball/rim/etc.
final
confidence double
final
hashCode int
The hash code for this object.
no setterinherited
label String
final
rect NormalizedRect
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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