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

# Portrait.smile Property

Module: Portrait

Type: int

## Definition

Value indicating whether the subject is smiling. -1 if not computed. The range is 0-100, 100 meaning the person is smiling.

Python

    smile: int

Exceptions

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

Dart

    int get smile => getSmile();

Exceptions

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

C#

    public int smile
    {
        get => Getsmile();
    }

Exceptions

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

Java

    public int getSmile() throws FaceException

Exceptions

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

Swift

    public var smile: Int
        get {
            return Int(try! getSmile())
        }
    }

Exceptions

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

C

    int id3FacePortrait_GetSmile (ID3_FACE_PORTRAIT hPortrait, int * smile)

Returns

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