Detection class

Raw detection output from the face detector containing the bounding box and keypoints.

Constructors

Detection({required RectF boundingBox, required double score, required List<double> keypointsXY, Size? imageSize})
Creates a detection with normalized geometry and optional source size.

Properties

boundingBox RectF
Normalized bounding box for the face.
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 coordinates [x0, y0, x1, y1, ...] normalized 0-1.
final
landmarks Map<FaceLandmarkType, Point>
Returns facial landmarks in pixel coordinates keyed by landmark type.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
Confidence score for the detection.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int i) double
Convenience accessor for [keypointsXY] by index.