Class FaceAnnotation.Builder

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

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark>
Returns
TypeDescription
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 = 1