目录

class info
com.huawei.hms.mlsdk.face.MLMaxSizeFaceTransactor.Creator
Creates an instance of the largest face processor.

Public Constructor Summary

Constructor name
Creator(MLAnalyzer<MLFace> analyzer, MLResultTrailer<MLFace> trailer)
Constructor.

Public Method Summary

Return typeMethod name
MLMaxSizeFaceTransactorcreate()
MLMaxSizeFaceTransactor.CreatorsetMaxFrameLostCount(int maxFrameLostCount)

Public Constructors

Method
public Creator(MLAnalyzer<MLFace> analyzer, MLResultTrailer<MLFace> trailer)
Constructor.

Parameters

Parameter nameParameter desc
analyzerFace analyzer.
trailerResult tracker, which is used to process the largest recognized face.

Public Methods

Method
public MLMaxSizeFaceTransactor create()
Creates an instance of the largest face processor.

Return

Typedesc
MLMaxSizeFaceTransactorReturns the instance of MLProminentFaceTransactor.
Method
public MLMaxSizeFaceTransactor.Creator setMaxFrameLostCount(int maxFrameLostCount)
Sets the maximum number of frames for determining that a face disappears. If the detected face never appears again in the specified number of frames, the analyzer determines that the face has disappeared. Then, the analyzer will go to track the current largest face.

Parameters

Parameter nameParameter desc
maxFrameLostCountMaximum number of frames for determining that a face disappears.


Return

Typedesc
MLMaxSizeFaceTransactor.CreatorReturns the instance of MLProminentFaceTransactor.Creator.