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

# Portrait.expression Property

Module: Portrait

Type: FaceExpression

## Definition

Estimated expression of the subject (angriness, disgust, fear, happiness, sadness, surprise, or neutral). Unknown if not computed.

Python

    expression: FaceExpression

Exceptions

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

Dart

    FaceExpression get expression => getExpression();

Exceptions

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

C#

    public FaceExpression expression
    {
        get => Getexpression();
    }

Exceptions

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

Java

    public FaceExpression getExpression() throws FaceException

Exceptions

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

Swift

    public var expression: FaceExpression
        get {
            return try! getExpression()
        }
    }

Exceptions

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

C

    int id3FacePortrait_GetExpression (ID3_FACE_PORTRAIT hPortrait, id3FaceExpression * eExpression)

Returns

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