We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesML Kitmlsdk.faceMLMaxSizeFaceTransactorCreator

MLMaxSizeFaceTransactor.Creator

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

Public Constructor Summary

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.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.