Portrait.glasses Property

Module: Portrait

Type: int

Definition

Value indicating whether the subject wears glasses. -1 if not computed. The range is 0-100, 100 meaning glasses are detected.

glasses: int

Exceptions

An error has occurred during Face Library execution.
int get glasses => getGlasses();

Exceptions

An error has occurred during Face Library execution.
public int glasses
{
    get => Getglasses();
}

Exceptions

An error has occurred during Face Library execution.
public int getGlasses() throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var glasses: Int
    get {
        return Int(try! getGlasses())
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FacePortrait_GetGlasses (ID3_FACE_PORTRAIT hPortrait, int * glasses)

Returns

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