FaceAnnotation class
A face annotation object contains the results of face detection.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
FaceAnnotation({required BoundingPoly boundingPoly, required BoundingPoly fdBoundingPoly, required List<
Landmark> landmarks, required double rollAngle, required double panAngle, required double tiltAngle, required double detectionConfidence, required double landmarkingConfidence, required Likelihood enumJoyLikelihood, required Likelihood enumSorrowLikelihood, required Likelihood enumAngerLikelihood, required Likelihood enumSurpriseLikelihood, required Likelihood enumUnderExposedLikelihood, required Likelihood enumBlurredLikelihood, required Likelihood enumHeadwearLikelihood}) -
FaceAnnotation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- boundingPoly → BoundingPoly
-
The bounding polygon around the face. The coordinates of the bounding box
are in the original image's scale. The bounding box is computed to "frame"
the face in accordance with human expectations. It is based on the
landmarker results. Note that one or more x and/or y coordinates may not be
generated in the BoundingPoly (the polygon will be unbounded) if only a
partial face appears in the image to be annotated.
final
- detectionConfidence → double
-
Detection confidence. Range [\0, 1].
final
- enumAngerLikelihood → Likelihood
-
Anger likelihood.
final
- enumBlurredLikelihood → Likelihood
-
Blurred likelihood.
final
- enumHeadwearLikelihood → Likelihood
-
Headwear likelihood.
final
- enumJoyLikelihood → Likelihood
-
Joy likelihood.
final
- enumSorrowLikelihood → Likelihood
-
Sorrow likelihood.
final
- enumSurpriseLikelihood → Likelihood
-
Surprise likelihood.
final
- enumUnderExposedLikelihood → Likelihood
-
Under-exposed likelihood.
final
- fdBoundingPoly → BoundingPoly
-
The fdBoundingPoly bounding polygon is tighter than the boundingPoly, and
encloses only the skin part of the face. Typically, it is used to eliminate
the face from any image analysis that detects the "amount of skin" visible
in an image. It is not based on the landmarker results, only on the initial
face detection, hence the 'fd' (face detection) prefix.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- landmarkingConfidence → double
-
Face landmarking confidence. Range [0, 1].
final
-
landmarks
→ List<
Landmark> -
Detected face landmarks.
final
- panAngle → double
-
Yaw angle, which indicates the leftward/rightward angle that the face is
pointing relative to the vertical plane perpendicular to the image. Range
[-180,180].
final
- rollAngle → double
-
Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
of the face relative to the image vertical about the axis perpendicular to
the face. Range [-180,180].
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tiltAngle → double
-
Pitch angle, which indicates the upwards/downwards angle that the face is
pointing relative to the image's horizontal plane. Range [-180,180].
final
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited