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

# PortraitProcessor.estimateExpression Method

Module: PortraitProcessor

## Definition

Estimates the subject’s expression on the specified portrait.

Important

This method requires the `FaceExpressionClassifier1A` model to be loaded.

Python

    estimate_expression(self, portrait: Portrait) -> None

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

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

Dart

    void estimateExpression(Portrait portrait)

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

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

C#

    public void EstimateExpression(Portrait portrait)

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

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

Java

    public void estimateExpression(Portrait portrait) throws FaceException

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

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

Swift

    public func estimateExpression(portrait: Portrait) throws

Parameters

> `portrait` Portrait
> in The portrait.

Exceptions

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

C

    int id3FacePortraitProcessor_EstimateExpression (
        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.