public final class FaceAnnotation extends GeneratedMessageV3 implements FaceAnnotationOrBuilder
A face annotation object contains the results of face detection.Protobuf type
google.cloud.vision.v1.FaceAnnotation| Modifier and Type | Class and Description |
|---|---|
static class |
FaceAnnotation.Builder
A face annotation object contains the results of face detection.
|
static class |
FaceAnnotation.Landmark
A face-specific landmark (for example, a face feature).
|
static interface |
FaceAnnotation.LandmarkOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ANGER_LIKELIHOOD_FIELD_NUMBER |
static int |
BLURRED_LIKELIHOOD_FIELD_NUMBER |
static int |
BOUNDING_POLY_FIELD_NUMBER |
static int |
DETECTION_CONFIDENCE_FIELD_NUMBER |
static int |
FD_BOUNDING_POLY_FIELD_NUMBER |
static int |
HEADWEAR_LIKELIHOOD_FIELD_NUMBER |
static int |
JOY_LIKELIHOOD_FIELD_NUMBER |
static int |
LANDMARKING_CONFIDENCE_FIELD_NUMBER |
static int |
LANDMARKS_FIELD_NUMBER |
static int |
PAN_ANGLE_FIELD_NUMBER |
static int |
ROLL_ANGLE_FIELD_NUMBER |
static int |
SORROW_LIKELIHOOD_FIELD_NUMBER |
static int |
SURPRISE_LIKELIHOOD_FIELD_NUMBER |
static int |
TILT_ANGLE_FIELD_NUMBER |
static int |
UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Likelihood |
getAngerLikelihood()
Anger likelihood.
|
int |
getAngerLikelihoodValue()
Anger likelihood.
|
Likelihood |
getBlurredLikelihood()
Blurred likelihood.
|
int |
getBlurredLikelihoodValue()
Blurred likelihood.
|
BoundingPoly |
getBoundingPoly()
The bounding polygon around the face.
|
BoundingPolyOrBuilder |
getBoundingPolyOrBuilder()
The bounding polygon around the face.
|
static FaceAnnotation |
getDefaultInstance() |
FaceAnnotation |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
float |
getDetectionConfidence()
Detection confidence.
|
BoundingPoly |
getFdBoundingPoly()
The `fd_bounding_poly` bounding polygon is tighter than the
`boundingPoly`, and encloses only the skin part of the face.
|
BoundingPolyOrBuilder |
getFdBoundingPolyOrBuilder()
The `fd_bounding_poly` bounding polygon is tighter than the
`boundingPoly`, and encloses only the skin part of the face.
|
Likelihood |
getHeadwearLikelihood()
Headwear likelihood.
|
int |
getHeadwearLikelihoodValue()
Headwear likelihood.
|
Likelihood |
getJoyLikelihood()
Joy likelihood.
|
int |
getJoyLikelihoodValue()
Joy likelihood.
|
float |
getLandmarkingConfidence()
Face landmarking confidence.
|
FaceAnnotation.Landmark |
getLandmarks(int index)
Detected face landmarks.
|
int |
getLandmarksCount()
Detected face landmarks.
|
java.util.List<FaceAnnotation.Landmark> |
getLandmarksList()
Detected face landmarks.
|
FaceAnnotation.LandmarkOrBuilder |
getLandmarksOrBuilder(int index)
Detected face landmarks.
|
java.util.List<? extends FaceAnnotation.LandmarkOrBuilder> |
getLandmarksOrBuilderList()
Detected face landmarks.
|
float |
getPanAngle()
Yaw angle, which indicates the leftward/rightward angle that the face is
pointing relative to the vertical plane perpendicular to the image.
|
Parser<FaceAnnotation> |
getParserForType() |
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.
|
int |
getSerializedSize() |
Likelihood |
getSorrowLikelihood()
Sorrow likelihood.
|
int |
getSorrowLikelihoodValue()
Sorrow likelihood.
|
Likelihood |
getSurpriseLikelihood()
Surprise likelihood.
|
int |
getSurpriseLikelihoodValue()
Surprise likelihood.
|
float |
getTiltAngle()
Pitch angle, which indicates the upwards/downwards angle that the face is
pointing relative to the image's horizontal plane.
|
Likelihood |
getUnderExposedLikelihood()
Under-exposed likelihood.
|
int |
getUnderExposedLikelihoodValue()
Under-exposed likelihood.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasBoundingPoly()
The bounding polygon around the face.
|
boolean |
hasFdBoundingPoly()
The `fd_bounding_poly` bounding polygon is tighter than the
`boundingPoly`, and encloses only the skin part of the face.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static FaceAnnotation.Builder |
newBuilder() |
static FaceAnnotation.Builder |
newBuilder(FaceAnnotation prototype) |
FaceAnnotation.Builder |
newBuilderForType() |
protected FaceAnnotation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static FaceAnnotation |
parseDelimitedFrom(java.io.InputStream input) |
static FaceAnnotation |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static FaceAnnotation |
parseFrom(byte[] data) |
static FaceAnnotation |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static FaceAnnotation |
parseFrom(java.nio.ByteBuffer data) |
static FaceAnnotation |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static FaceAnnotation |
parseFrom(ByteString data) |
static FaceAnnotation |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static FaceAnnotation |
parseFrom(CodedInputStream input) |
static FaceAnnotation |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static FaceAnnotation |
parseFrom(java.io.InputStream input) |
static FaceAnnotation |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<FaceAnnotation> |
parser() |
FaceAnnotation.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int BOUNDING_POLY_FIELD_NUMBER
public static final int FD_BOUNDING_POLY_FIELD_NUMBER
public static final int LANDMARKS_FIELD_NUMBER
public static final int ROLL_ANGLE_FIELD_NUMBER
public static final int PAN_ANGLE_FIELD_NUMBER
public static final int TILT_ANGLE_FIELD_NUMBER
public static final int DETECTION_CONFIDENCE_FIELD_NUMBER
public static final int LANDMARKING_CONFIDENCE_FIELD_NUMBER
public static final int JOY_LIKELIHOOD_FIELD_NUMBER
public static final int SORROW_LIKELIHOOD_FIELD_NUMBER
public static final int ANGER_LIKELIHOOD_FIELD_NUMBER
public static final int SURPRISE_LIKELIHOOD_FIELD_NUMBER
public static final int UNDER_EXPOSED_LIKELIHOOD_FIELD_NUMBER
public static final int BLURRED_LIKELIHOOD_FIELD_NUMBER
public static final int HEADWEAR_LIKELIHOOD_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean hasBoundingPoly()
The bounding polygon around the face. The coordinates of the bounding box are in the original image's scale, as returned in `ImageParams`. 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;hasBoundingPoly in interface FaceAnnotationOrBuilderpublic BoundingPoly getBoundingPoly()
The bounding polygon around the face. The coordinates of the bounding box are in the original image's scale, as returned in `ImageParams`. 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;getBoundingPoly in interface FaceAnnotationOrBuilderpublic BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon around the face. The coordinates of the bounding box are in the original image's scale, as returned in `ImageParams`. 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;getBoundingPolyOrBuilder in interface FaceAnnotationOrBuilderpublic 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;hasFdBoundingPoly in interface FaceAnnotationOrBuilderpublic 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;getFdBoundingPoly in interface FaceAnnotationOrBuilderpublic 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;getFdBoundingPolyOrBuilder in interface FaceAnnotationOrBuilderpublic java.util.List<FaceAnnotation.Landmark> getLandmarksList()
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;getLandmarksList in interface FaceAnnotationOrBuilderpublic java.util.List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;getLandmarksOrBuilderList in interface FaceAnnotationOrBuilderpublic int getLandmarksCount()
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;getLandmarksCount in interface FaceAnnotationOrBuilderpublic FaceAnnotation.Landmark getLandmarks(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;getLandmarks in interface FaceAnnotationOrBuilderpublic FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;getLandmarksOrBuilder in interface FaceAnnotationOrBuilderpublic 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;getRollAngle in interface FaceAnnotationOrBuilderpublic 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;getPanAngle in interface FaceAnnotationOrBuilderpublic 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;getTiltAngle in interface FaceAnnotationOrBuilderpublic float getDetectionConfidence()
Detection confidence. Range [0, 1].
float detection_confidence = 7;getDetectionConfidence in interface FaceAnnotationOrBuilderpublic float getLandmarkingConfidence()
Face landmarking confidence. Range [0, 1].
float landmarking_confidence = 8;getLandmarkingConfidence in interface FaceAnnotationOrBuilderpublic int getJoyLikelihoodValue()
Joy likelihood.
.google.cloud.vision.v1.Likelihood joy_likelihood = 9;getJoyLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getJoyLikelihood()
Joy likelihood.
.google.cloud.vision.v1.Likelihood joy_likelihood = 9;getJoyLikelihood in interface FaceAnnotationOrBuilderpublic int getSorrowLikelihoodValue()
Sorrow likelihood.
.google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;getSorrowLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getSorrowLikelihood()
Sorrow likelihood.
.google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;getSorrowLikelihood in interface FaceAnnotationOrBuilderpublic int getAngerLikelihoodValue()
Anger likelihood.
.google.cloud.vision.v1.Likelihood anger_likelihood = 11;getAngerLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getAngerLikelihood()
Anger likelihood.
.google.cloud.vision.v1.Likelihood anger_likelihood = 11;getAngerLikelihood in interface FaceAnnotationOrBuilderpublic int getSurpriseLikelihoodValue()
Surprise likelihood.
.google.cloud.vision.v1.Likelihood surprise_likelihood = 12;getSurpriseLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getSurpriseLikelihood()
Surprise likelihood.
.google.cloud.vision.v1.Likelihood surprise_likelihood = 12;getSurpriseLikelihood in interface FaceAnnotationOrBuilderpublic int getUnderExposedLikelihoodValue()
Under-exposed likelihood.
.google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;getUnderExposedLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getUnderExposedLikelihood()
Under-exposed likelihood.
.google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;getUnderExposedLikelihood in interface FaceAnnotationOrBuilderpublic int getBlurredLikelihoodValue()
Blurred likelihood.
.google.cloud.vision.v1.Likelihood blurred_likelihood = 14;getBlurredLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getBlurredLikelihood()
Blurred likelihood.
.google.cloud.vision.v1.Likelihood blurred_likelihood = 14;getBlurredLikelihood in interface FaceAnnotationOrBuilderpublic int getHeadwearLikelihoodValue()
Headwear likelihood.
.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;getHeadwearLikelihoodValue in interface FaceAnnotationOrBuilderpublic Likelihood getHeadwearLikelihood()
Headwear likelihood.
.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;getHeadwearLikelihood in interface FaceAnnotationOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FaceAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FaceAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FaceAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FaceAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FaceAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static FaceAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FaceAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static FaceAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FaceAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static FaceAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static FaceAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic FaceAnnotation.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static FaceAnnotation.Builder newBuilder()
public static FaceAnnotation.Builder newBuilder(FaceAnnotation prototype)
public FaceAnnotation.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected FaceAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static FaceAnnotation getDefaultInstance()
public static Parser<FaceAnnotation> parser()
public Parser<FaceAnnotation> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public FaceAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder