PortraitProcessor.estimateFaceAttributes Method

Module: PortraitProcessor

Definition

Estimates the face attributes of the specified portrait.

It includes glasses, hat, makeup, mouth opening, gender, smile, eye gaze, eye opening, face mask

Note

The appropriate AI models must be loaded.

estimate_face_attributes(self, portrait: Portrait) -> None

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
void estimateFaceAttributes(Portrait portrait)

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
public void EstimateFaceAttributes(Portrait portrait)

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
public void estimateFaceAttributes(Portrait portrait) throws FaceException

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
public func estimateFaceAttributes(portrait: Portrait) throws

Parameters

portrait Portrait
in The portrait.

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_EstimateFaceAttributes (
    ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor,
    ID3_FACE_PORTRAIT hPortrait)

Parameters

hPortraitProcessor ID3_FACE_PORTRAIT_PROCESSOR
in Handle to the PortraitProcessor object.

in The portrait.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.