Interface FaceAnnotationOrBuilder (3.5.0)

public interface FaceAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAngerLikelihood()

public abstract Likelihood getAngerLikelihood()

Anger likelihood.

.google.cloud.vision.v1.Likelihood anger_likelihood = 11;

Returns
TypeDescription
Likelihood

The angerLikelihood.

getAngerLikelihoodValue()

public abstract int getAngerLikelihoodValue()

Anger likelihood.

.google.cloud.vision.v1.Likelihood anger_likelihood = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for angerLikelihood.

getBlurredLikelihood()

public abstract Likelihood getBlurredLikelihood()

Blurred likelihood.

.google.cloud.vision.v1.Likelihood blurred_likelihood = 14;

Returns
TypeDescription
Likelihood

The blurredLikelihood.

getBlurredLikelihoodValue()

public abstract int getBlurredLikelihoodValue()

Blurred likelihood.

.google.cloud.vision.v1.Likelihood blurred_likelihood = 14;

Returns
TypeDescription
int

The enum numeric value on the wire for blurredLikelihood.

getBoundingPoly()

public abstract BoundingPoly getBoundingPoly()

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.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public abstract BoundingPolyOrBuilder getBoundingPolyOrBuilder()

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.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPolyOrBuilder

getDetectionConfidence()

public abstract float getDetectionConfidence()

Detection confidence. Range [0, 1].

float detection_confidence = 7;

Returns
TypeDescription
float

The detectionConfidence.

getFdBoundingPoly()

public abstract BoundingPoly getFdBoundingPoly()

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.

.google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
BoundingPoly

The fdBoundingPoly.

getFdBoundingPolyOrBuilder()

public abstract BoundingPolyOrBuilder getFdBoundingPolyOrBuilder()

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.

.google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
BoundingPolyOrBuilder

getHeadwearLikelihood()

public abstract Likelihood getHeadwearLikelihood()

Headwear likelihood.

.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;

Returns
TypeDescription
Likelihood

The headwearLikelihood.

getHeadwearLikelihoodValue()

public abstract int getHeadwearLikelihoodValue()

Headwear likelihood.

.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for headwearLikelihood.

getJoyLikelihood()

public abstract Likelihood getJoyLikelihood()

Joy likelihood.

.google.cloud.vision.v1.Likelihood joy_likelihood = 9;

Returns
TypeDescription
Likelihood

The joyLikelihood.

getJoyLikelihoodValue()

public abstract int getJoyLikelihoodValue()

Joy likelihood.

.google.cloud.vision.v1.Likelihood joy_likelihood = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for joyLikelihood.

getLandmarkingConfidence()

public abstract float getLandmarkingConfidence()

Face landmarking confidence. Range [0, 1].

float landmarking_confidence = 8;

Returns
TypeDescription
float

The landmarkingConfidence.

getLandmarks(int index)

public abstract FaceAnnotation.Landmark getLandmarks(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Landmark

getLandmarksCount()

public abstract int getLandmarksCount()

Detected face landmarks.

repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
int

getLandmarksList()

public abstract List<FaceAnnotation.Landmark> getLandmarksList()

Detected face landmarks.

repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
List<Landmark>

getLandmarksOrBuilder(int index)

public abstract FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.LandmarkOrBuilder

getLandmarksOrBuilderList()

public abstract List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()

Detected face landmarks.

repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.FaceAnnotation.LandmarkOrBuilder>

getPanAngle()

public abstract float getPanAngle()

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].

float pan_angle = 5;

Returns
TypeDescription
float

The panAngle.

getRollAngle()

public abstract float getRollAngle()

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].

float roll_angle = 4;

Returns
TypeDescription
float

The rollAngle.

getSorrowLikelihood()

public abstract Likelihood getSorrowLikelihood()

Sorrow likelihood.

.google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;

Returns
TypeDescription
Likelihood

The sorrowLikelihood.

getSorrowLikelihoodValue()

public abstract int getSorrowLikelihoodValue()

Sorrow likelihood.

.google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for sorrowLikelihood.

getSurpriseLikelihood()

public abstract Likelihood getSurpriseLikelihood()

Surprise likelihood.

.google.cloud.vision.v1.Likelihood surprise_likelihood = 12;

Returns
TypeDescription
Likelihood

The surpriseLikelihood.

getSurpriseLikelihoodValue()

public abstract int getSurpriseLikelihoodValue()

Surprise likelihood.

.google.cloud.vision.v1.Likelihood surprise_likelihood = 12;

Returns
TypeDescription
int

The enum numeric value on the wire for surpriseLikelihood.

getTiltAngle()

public abstract float getTiltAngle()

Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane. Range [-180,180].

float tilt_angle = 6;

Returns
TypeDescription
float

The tiltAngle.

getUnderExposedLikelihood()

public abstract Likelihood getUnderExposedLikelihood()

Under-exposed likelihood.

.google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;

Returns
TypeDescription
Likelihood

The underExposedLikelihood.

getUnderExposedLikelihoodValue()

public abstract int getUnderExposedLikelihoodValue()

Under-exposed likelihood.

.google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;

Returns
TypeDescription
int

The enum numeric value on the wire for underExposedLikelihood.

hasBoundingPoly()

public abstract boolean hasBoundingPoly()

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.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
boolean

Whether the boundingPoly field is set.

hasFdBoundingPoly()

public abstract boolean hasFdBoundingPoly()

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.

.google.cloud.vision.v1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
boolean

Whether the fdBoundingPoly field is set.