Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# 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.

Python

    estimate_face_attributes(self, portrait: Portrait) -> None

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    void estimateFaceAttributes(Portrait portrait)

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public void EstimateFaceAttributes(Portrait portrait)

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public void estimateFaceAttributes(Portrait portrait) throws FaceException

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func estimateFaceAttributes(portrait: Portrait) throws

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FacePortraitProcessor_EstimateFaceAttributes (
        ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor,
        ID3_FACE_PORTRAIT hPortrait)

Parameters

> `hPortraitProcessor` ID3_FACE_PORTRAIT_PROCESSOR
> in Handle to the PortraitProcessor object.
> `hPortrait` ID3_FACE_PORTRAIT
> in The portrait.

Returns

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