Google Cloud Vision v1 API - Class FaceAnnotation (3.2.0)

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.

Inheritance

Object > FaceAnnotation

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

FaceAnnotation()

public FaceAnnotation()

FaceAnnotation(FaceAnnotation)

public FaceAnnotation(FaceAnnotation other)
Parameter
NameDescription
otherFaceAnnotation

Properties

AngerLikelihood

public Likelihood AngerLikelihood { get; set; }

Anger likelihood.

Property Value
TypeDescription
Likelihood

BlurredLikelihood

public Likelihood BlurredLikelihood { get; set; }

Blurred likelihood.

Property Value
TypeDescription
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
TypeDescription
BoundingPoly

DetectionConfidence

public float DetectionConfidence { get; set; }

Detection confidence. Range [0, 1].

Property Value
TypeDescription
Single

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
TypeDescription
BoundingPoly

HeadwearLikelihood

public Likelihood HeadwearLikelihood { get; set; }

Headwear likelihood.

Property Value
TypeDescription
Likelihood

JoyLikelihood

public Likelihood JoyLikelihood { get; set; }

Joy likelihood.

Property Value
TypeDescription
Likelihood

LandmarkingConfidence

public float LandmarkingConfidence { get; set; }

Face landmarking confidence. Range [0, 1].

Property Value
TypeDescription
Single

Landmarks

public RepeatedField<FaceAnnotation.Types.Landmark> Landmarks { get; }

Detected face landmarks.

Property Value
TypeDescription
RepeatedField<FaceAnnotation.Types.Landmark>

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
TypeDescription
Single

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
TypeDescription
Single

SorrowLikelihood

public Likelihood SorrowLikelihood { get; set; }

Sorrow likelihood.

Property Value
TypeDescription
Likelihood

SurpriseLikelihood

public Likelihood SurpriseLikelihood { get; set; }

Surprise likelihood.

Property Value
TypeDescription
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
TypeDescription
Single

UnderExposedLikelihood

public Likelihood UnderExposedLikelihood { get; set; }

Under-exposed likelihood.

Property Value
TypeDescription
Likelihood