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

# Portrait.age Property

Module: Portrait

Type: int

## Definition

Estimated age of the subject. -1 if not computed.

Python

    age: int

Exceptions

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

Dart

    int get age => getAge();

Exceptions

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

C#

    public int age
    {
        get => Getage();
    }

Exceptions

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

Java

    public int getAge() throws FaceException

Exceptions

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

Swift

    public var age: Int
        get {
            return Int(try! getAge())
        }
    }

Exceptions

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

C

    int id3FacePortrait_GetAge (ID3_FACE_PORTRAIT hPortrait, int * age)

Returns

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