Detection class

Raw detection output: bounding box + 6 keypoints.

Constructors

Detection({required RectF boundingBox, required double score, required List<double> keypointsXY, Size? imageSize})
Creates a detection.
Detection.fromMap(Map<String, dynamic> map)
Creates from a map.
factory

Properties

boundingBox RectF
Normalized bounding box.
final
hashCode int
The hash code for this object.
no setterinherited
imageSize Size?
Original image dimensions used to denormalize landmarks.
final
keypointsXY List<double>
Flattened landmark coords [x0, y0, x1, y1, ...] normalized 0-1.
final
landmarks Map<FaceLandmarkType, Point>
Returns facial landmarks in pixel coordinates.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
Confidence score.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Serializes to a map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int i) double
Index access to keypointsXY.