public final class FaceAnnotation extends GeneratedMessageV3 implements FaceAnnotationOrBuilder
A face annotation object contains the results of face detection.Protobuf type
google.cloud.vision.v1p1beta1.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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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.v1p1beta1.BoundingPoly bounding_poly = 1;
hasBoundingPoly
in interface FaceAnnotationOrBuilder
public 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.v1p1beta1.BoundingPoly bounding_poly = 1;
getBoundingPoly
in interface FaceAnnotationOrBuilder
public 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.v1p1beta1.BoundingPoly bounding_poly = 1;
getBoundingPolyOrBuilder
in interface FaceAnnotationOrBuilder
public 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.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
hasFdBoundingPoly
in interface FaceAnnotationOrBuilder
public 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.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
getFdBoundingPoly
in interface FaceAnnotationOrBuilder
public 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.v1p1beta1.BoundingPoly fd_bounding_poly = 2;
getFdBoundingPolyOrBuilder
in interface FaceAnnotationOrBuilder
public java.util.List<FaceAnnotation.Landmark> getLandmarksList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
getLandmarksList
in interface FaceAnnotationOrBuilder
public java.util.List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
getLandmarksOrBuilderList
in interface FaceAnnotationOrBuilder
public int getLandmarksCount()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
getLandmarksCount
in interface FaceAnnotationOrBuilder
public FaceAnnotation.Landmark getLandmarks(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
getLandmarks
in interface FaceAnnotationOrBuilder
public FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
getLandmarksOrBuilder
in interface FaceAnnotationOrBuilder
public 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 FaceAnnotationOrBuilder
public 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 FaceAnnotationOrBuilder
public 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 FaceAnnotationOrBuilder
public float getDetectionConfidence()
Detection confidence. Range [0, 1].
float detection_confidence = 7;
getDetectionConfidence
in interface FaceAnnotationOrBuilder
public float getLandmarkingConfidence()
Face landmarking confidence. Range [0, 1].
float landmarking_confidence = 8;
getLandmarkingConfidence
in interface FaceAnnotationOrBuilder
public int getJoyLikelihoodValue()
Joy likelihood.
.google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9;
getJoyLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getJoyLikelihood()
Joy likelihood.
.google.cloud.vision.v1p1beta1.Likelihood joy_likelihood = 9;
getJoyLikelihood
in interface FaceAnnotationOrBuilder
public int getSorrowLikelihoodValue()
Sorrow likelihood.
.google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10;
getSorrowLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getSorrowLikelihood()
Sorrow likelihood.
.google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10;
getSorrowLikelihood
in interface FaceAnnotationOrBuilder
public int getAngerLikelihoodValue()
Anger likelihood.
.google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11;
getAngerLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getAngerLikelihood()
Anger likelihood.
.google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11;
getAngerLikelihood
in interface FaceAnnotationOrBuilder
public int getSurpriseLikelihoodValue()
Surprise likelihood.
.google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12;
getSurpriseLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getSurpriseLikelihood()
Surprise likelihood.
.google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12;
getSurpriseLikelihood
in interface FaceAnnotationOrBuilder
public int getUnderExposedLikelihoodValue()
Under-exposed likelihood.
.google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13;
getUnderExposedLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getUnderExposedLikelihood()
Under-exposed likelihood.
.google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13;
getUnderExposedLikelihood
in interface FaceAnnotationOrBuilder
public int getBlurredLikelihoodValue()
Blurred likelihood.
.google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14;
getBlurredLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getBlurredLikelihood()
Blurred likelihood.
.google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14;
getBlurredLikelihood
in interface FaceAnnotationOrBuilder
public int getHeadwearLikelihoodValue()
Headwear likelihood.
.google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15;
getHeadwearLikelihoodValue
in interface FaceAnnotationOrBuilder
public Likelihood getHeadwearLikelihood()
Headwear likelihood.
.google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15;
getHeadwearLikelihood
in interface FaceAnnotationOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static FaceAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaceAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static FaceAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public FaceAnnotation.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static FaceAnnotation.Builder newBuilder()
public static FaceAnnotation.Builder newBuilder(FaceAnnotation prototype)
public FaceAnnotation.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected FaceAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static FaceAnnotation getDefaultInstance()
public static Parser<FaceAnnotation> parser()
public Parser<FaceAnnotation> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public FaceAnnotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder