public sealed class FaceAnnotation : IMessage<FaceAnnotation>, IEquatable<FaceAnnotation>, IDeepCloneable<FaceAnnotation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Vision v1 API class FaceAnnotation.
A face annotation object contains the results of face detection.
Implements
IMessageFaceAnnotation, IEquatableFaceAnnotation, IDeepCloneableFaceAnnotation, IBufferMessage, IMessageNamespace
Google.Cloud.Vision.V1Assembly
Google.Cloud.Vision.V1.dll
Constructors
FaceAnnotation()
public FaceAnnotation()
FaceAnnotation(FaceAnnotation)
public FaceAnnotation(FaceAnnotation other)
Parameter | |
---|---|
Name | Description |
other | FaceAnnotation |
Properties
AngerLikelihood
public Likelihood AngerLikelihood { get; set; }
Anger likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |
BlurredLikelihood
public Likelihood BlurredLikelihood { get; set; }
Blurred likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |
BoundingPoly
public BoundingPoly BoundingPoly { get; set; }
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.
Property Value | |
---|---|
Type | Description |
BoundingPoly |
DetectionConfidence
public float DetectionConfidence { get; set; }
Detection confidence. Range [0, 1].
Property Value | |
---|---|
Type | Description |
float |
FdBoundingPoly
public BoundingPoly FdBoundingPoly { get; set; }
The fd_bounding_poly
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 <code>fd</code> (face detection) prefix.
Property Value | |
---|---|
Type | Description |
BoundingPoly |
HeadwearLikelihood
public Likelihood HeadwearLikelihood { get; set; }
Headwear likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |
JoyLikelihood
public Likelihood JoyLikelihood { get; set; }
Joy likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |
LandmarkingConfidence
public float LandmarkingConfidence { get; set; }
Face landmarking confidence. Range [0, 1].
Property Value | |
---|---|
Type | Description |
float |
Landmarks
public RepeatedField<FaceAnnotation.Types.Landmark> Landmarks { get; }
Detected face landmarks.
Property Value | |
---|---|
Type | Description |
RepeatedFieldFaceAnnotationTypesLandmark |
PanAngle
public float PanAngle { get; set; }
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].
Property Value | |
---|---|
Type | Description |
float |
RollAngle
public float RollAngle { get; set; }
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].
Property Value | |
---|---|
Type | Description |
float |
SorrowLikelihood
public Likelihood SorrowLikelihood { get; set; }
Sorrow likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |
SurpriseLikelihood
public Likelihood SurpriseLikelihood { get; set; }
Surprise likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |
TiltAngle
public float TiltAngle { get; set; }
Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane. Range [-180,180].
Property Value | |
---|---|
Type | Description |
float |
UnderExposedLikelihood
public Likelihood UnderExposedLikelihood { get; set; }
Under-exposed likelihood.
Property Value | |
---|---|
Type | Description |
Likelihood |