HolisticLandmarker.HolisticLandmarkerOptions.Builder

公共静态抽象类 HolisticLandmarker.HolisticLandmarkerOptions.Builder

公共构造函数

公共方法

final HolisticLandmarker.HolisticLandmarkerOptions
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setBaseOptions(BaseOptions 值)
为整体地标任务设置基本选项。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setErrorListenerErrorListener 值)
设置可选的错误监听器。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFaceDetectionConfidenceFloat 值)
设置人脸检测被视为成功的最低置信度分数。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFacePresenceConfidenceFloat 值)
设置人脸特征点检测被视为成功的最低置信度分数。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFaceSuppressionThresholdFloat 值)
人脸检测中的人脸抑制分数的最小阈值。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinHandLandmarksConfidence浮点值值)
手部特征检测被视为成功的最低置信度分数。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPoseDetectionConfidenceFloat 值)
姿势检测被视为成功所需的最低置信度分数。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPosePresenceConfidenceFloat 值)
姿势特征点检测被视为成功所需的最低置信度分数。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPoseSuppressionThresholdFloat 值)
姿势检测中姿势抑制分数的最小阈值。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setOutputFaceBlendshapes布尔值值)
是否输出人脸融合变形。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setOutputPoseSegmentationMasks布尔值值)
是否输出分割掩码。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setResultListener(ResultListener<HolisticLandmarkerResultMPImage> 值)
设置结果监听器,以便在整体地标处于直播模式时异步接收检测结果。
abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder
setRunningModeRunningMode 值)
为整体地标任务设置运行模式。

继承的方法

公共构造函数

public Builder ()

公共方法

public final HolisticLandmarker.HolisticLandmarkerOptions build ()

抛出
IllegalArgumentException 如果结果监听器和运行模式未正确配置,则会发生该错误。仅当整体地标对象处于直播模式时,才应设置结果监听器。

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

为整体地标任务设置基本选项。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setErrorListener ErrorListener 值)

设置可选的错误监听器。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFaceDetectionConfidence Float 值)

设置人脸检测被视为成功的最低置信度分数。默认值为 0.5。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFacePresenceConfidence Float 值)

设置人脸特征点检测被视为成功的最低置信度分数。默认值为 0.5。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFaceSuppressionThreshold Float 值)

人脸检测中的人脸抑制分数的最小阈值。默认值为 0.3。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinHandLandmarksConfidence Float 值)

手部特征检测被视为成功所需的最低置信度分数。默认值为 0.5。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinPoseDetectionConfidence Float 值)

姿势检测被视为成功所需的最低置信度分数。默认值为 0.5。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinPosePresenceConfidence Float 值)

姿势特征点检测被视为成功所需的最低置信度分数。默认值为 0.5。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinPoseSuppressionThreshold Float 值)

姿势检测中姿势抑制分数的最小阈值。默认值为 0.3。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setOutputFaceBlendshapes Boolean 值)

是否输出人脸融合变形。默认值为 false。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setOutputPoseSegmentationMasks Boolean 值)

是否输出分割掩码。默认值为 false。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setResultListener (ResultListener<HolisticLandmarkerResultMPImage> 值)

设置结果监听器,以便在整体地标处于直播模式时异步接收检测结果。

参数

public abstract HolisticLandmarker.HolisticLandmarkerOptions.Builder setRunningMode RunningMode 值)

为整体地标任务设置运行模式。默认为图片模式。 整体地标模型有三种模式:

  • 图片:用于根据单张图片输入检测整体地标的模式。
  • 视频:用于在视频的已解码帧上检测整体地标的模式。
  • LIVE_STREAM:用于在输入数据流(例如来自摄像头)的实时输入数据流中检测整体地标的模式。在此模式下,必须调用 setResultListener 来设置监听器,以异步接收检测结果。

参数