HolisticLandmarker.HolisticLandmarkerOptions.Builder

public static abstract class HolisticLandmarker.HolisticLandmarkerOptions.Builder

Public Constructors

Public Methods

final HolisticLandmarker.HolisticLandmarkerOptions
build()
Validates and builds the HolisticLandmarker.HolisticLandmarkerOptions instance.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setBaseOptions(BaseOptions value)
Sets the base options for the holistic landmarker task.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setErrorListener(ErrorListener value)
Sets an optional error listener.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFaceDetectionConfidence(Float value)
Sets minimum confidence score for the face detection to be considered successful.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFacePresenceConfidence(Float value)
Sets minimum confidence score for the face landmark detection to be considered successful.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFaceSuppressionThreshold(Float value)
The minimum threshold for the face suppression score in the face detection.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinHandLandmarksConfidence(Float value)
The minimum confidence score for the hand landmark detection to be considered successful.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPoseDetectionConfidence(Float value)
The minimum confidence score for the pose detection to be considered successful.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPosePresenceConfidence(Float value)
The minimum confidence score for the pose landmarks detection to be considered successful.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPoseSuppressionThreshold(Float value)
The minimum threshold for the pose suppression score in the pose detection.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setOutputFaceBlendshapes(Boolean value)
Whether to output face blendshapes.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setOutputPoseSegmentationMasks(Boolean value)
Whether to output segmentation masks.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setResultListener(ResultListener<HolisticLandmarkerResultMPImage> value)
Sets the result listener to receive the detection results asynchronously when the holistic landmarker is in the live stream mode.
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setRunningMode(RunningMode value)
Sets the running mode for the holistic landmarker task.

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public final HolisticLandmarker.HolisticLandmarkerOptions build ()

Validates and builds the HolisticLandmarker.HolisticLandmarkerOptions instance.

Throws
IllegalArgumentException if the result listener and the running mode are not properly configured. The result listener should only be set when the holistic landmarker is in the live stream mode.

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setBaseOptions (BaseOptions value)

Sets the base options for the holistic landmarker task.

Parameters
value

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setErrorListener (ErrorListener value)

Sets an optional error listener.

Parameters
value

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFaceDetectionConfidence (Float value)

Sets minimum confidence score for the face detection to be considered successful. Defaults to 0.5.

Parameters
value

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFacePresenceConfidence (Float value)

Sets minimum confidence score for the face landmark detection to be considered successful. Defaults to 0.5.

Parameters
value

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFaceSuppressionThreshold (Float value)

The minimum threshold for the face suppression score in the face detection. Defaults to 0.3.

Parameters
value

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinHandLandmarksConfidence (Float value)

The minimum confidence score for the hand landmark detection to be considered successful. Defaults to 0.5.

Parameters
value

publi