Detection class final
One detected object or face: its box, categories and, for models that report them, keypoints.
- Annotations
-
- @immutable
Constructors
-
Detection({required BoundingBox boundingBox, required List<
MediaPipeCategory> categories, List<NormalizedKeypoint> keypoints = const []}) - Owns unmodifiable copies of the lists.
Properties
- boundingBox → BoundingBox
-
Pixel coordinates in the input image.
final
-
categories
→ List<
MediaPipeCategory> -
Categories in the runtime's order, best first.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keypoints
→ List<
NormalizedKeypoint> -
Keypoints in the model's order, empty when it reports none.
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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited