Class FaceAnnotation.Builder (2.1.4)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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;

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 = 16;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.FaceRecognitionResult>
Returns
TypeDescription
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;

Parameter
NameDescription
valueFaceAnnotation.Landmark
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueFaceAnnotation.Landmark.Builder
Returns
TypeDescription
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;

Parameters