HolisticLandmarker.HolisticLandmarkerOptions.Builder

公開靜態抽象類別 HolisticLandmarker.HolisticLandmarkerOptions.Builder

公用建構函式

公用方法

最終 HolisticLandmarker.HolisticLandmarkerOptions
build()
驗證並建構 HolisticLandmarker.HolisticLandmarkerOptions 執行個體。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setBaseOptions(BaseOptions 值)
設定整體地標工作的基礎選項。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setErrorListener(ErrorListener 值)
設定選用的錯誤事件監聽器。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFaceDetectionConfidence(Float 值)
設定最低可信度分數,判定臉部偵測成功。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFacePresenceConfidence(浮點值)
設定要將臉部地標偵測判定為成功的可信度分數下限。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinFaceSuppressionThreshold(浮點值)
臉部偵測中臉部抑制分數的最低門檻。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinHandLandmarksConfidence(浮點值)
系統判定手部地標偵測成功時的最低可信度分數。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPoseDetectionConfidence(浮點值)
判定姿勢偵測作業成功所需的最低可信度分數。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPosePresenceConfidence(浮點值值)
判定姿勢地標偵測結果的最低信心分數。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setMinPoseSuppressionThreshold(「浮點值」值)
姿勢偵測中姿勢抑制分數的最低門檻。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setOutputFaceBlendshapes(布林值)
是否輸出臉部混合形狀。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setOutputPoseSegmentationMasks (「布林值」值)
是否輸出區隔遮罩。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setResultListener(ResultListener<HolisticLandmarkerResultMPImage> 值)
設定結果監聽器,在整體地標功能處於直播模式時,以非同步方式接收偵測結果。
抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder
setRunningMode(RunningMode 值)
設定執行模式,執行全方位的地標工作。

繼承的方法

公用建構函式

public Builder ()

公用方法

public 最後 HolisticLandmarker.HolisticLandmarkerOptions build ()

驗證並建構 HolisticLandmarker.HolisticLandmarkerOptions 執行個體。

擲回
IllegalArgumentException 否則結果監聽器和執行模式未正確設定。只有在整體位置標記處於直播模式時,才能設定結果監聽器。

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setBaseOptions (BaseOptions 值)

設定整體地標工作的基礎選項。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setErrorListener (ErrorListener value)

設定選用的錯誤事件監聽器。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFaceDetectionConfidence (Float 值)

設定最低可信度分數,判定臉部偵測成功。預設值為 0.5。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFacePresenceConfidence (Float 值)

設定臉部地標偵測作業的最低可信度分數,才可視為成功。 預設值為 0.5。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinFaceSuppressionThreshold (Float 值)

臉部偵測中臉部抑制分數的最低門檻。預設值為 0.3。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinHandLandmarksConfidence (Float 值)

系統判定手部地標偵測成功時的最低可信度分數。 預設值為 0.5。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinPoseDetectionConfidence (Float 值)

判定姿勢偵測作業成功所需的最低可信度分數。預設值為 0.5。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinPosePresenceConfidence (Float 值)

判定姿勢地標偵測結果的最低信心分數。預設值為 0.5。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setMinPoseSuppressionThreshold (Float 值)

姿勢偵測中姿勢抑制分數的最低門檻。預設值為 0.3。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setOutputFaceBlendshapes (Boolean 值)

是否輸出臉部混合形狀。預設值為 false。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setOutputPoseSegmentationMasks (Boolean 值)

是否輸出區隔遮罩。預設值為 false。

參數

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

設定結果監聽器,在整體地標功能處於直播模式時,以非同步方式接收偵測結果。

參數

public 抽象 HolisticLandmarker.HolisticLandmarkerOptions.Builder setRunningMode (RunningMode 值)

設定執行模式,執行全方位的地標工作。預設為圖片模式。全方位地標工具有三種模式:

  • 圖片:此模式可在單一圖片輸入上偵測整體地標。
  • 影片:這個模式可偵測影片中已解碼影格上的完整地標。
  • LIVE_STREAM:這個模式可在含有相機等輸入資料的直播中偵測完整地標。在這個模式下,必須呼叫 setResultListener 才能設定事件監聽器,並以非同步方式接收偵測結果。

參數