public static final class FaceAnnotation.Builder extends GeneratedMessageV3.Builder<FaceAnnotation.Builder> implements FaceAnnotationOrBuilder
A face annotation object contains the results of face detection.
Protobuf type google.cloud.vision.v1p4beta1.FaceAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FaceAnnotation.BuilderImplements
FaceAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)
public FaceAnnotation.Builder addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)
Detected face landmarks.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark> |
Type | Description |
FaceAnnotation.Builder |
addAllRecognitionResult(Iterable<? extends FaceRecognitionResult> values)
public FaceAnnotation.Builder addAllRecognitionResult(Iterable<? extends FaceRecognitionResult> values)
Additional recognition information. Only computed if image_context.face_recognition_params is provided, and a match is found to a Celebrity in the input CelebritySet. This field is sorted in order of decreasing confidence values.
repeated .google.cloud.vision.v1p4beta1.FaceRecognitionResult recognition_result = 16;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p4beta1.FaceRecognitionResult> |
Type | Description |
FaceAnnotation.Builder |
addLandmarks(FaceAnnotation.Landmark value)
public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark value)
Detected face landmarks.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3;
Name | Description |
value | FaceAnnotation.Landmark |
Type | Description |
FaceAnnotation.Builder |
addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)
public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3;
Name | Description |
builderForValue | FaceAnnotation.Landmark.Builder |
Type | Description |
FaceAnnotation.Builder |
addLandmarks(int index, FaceAnnotation.Landmark value)
public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark value)
Detected face landmarks.
repeated .google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark landmarks = 3;