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

# PortraitProcessor.tintedGlassThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Tinted glass detection threshold.

If the score is above this value, the person is definitely wearing tinted glasses.

Hint

Default value 25.

Python

    tinted_glass_threshold: int

Exceptions

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

Dart

    int get tintedGlassThreshold => getTintedGlassThreshold();
    set tintedGlassThreshold(int value) => setTintedGlassThreshold(value);

Exceptions

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

C#

    public int tintedGlassThreshold
    {
        get => GettintedGlassThreshold();
        set => SettintedGlassThreshold(ref value);
    }

Exceptions

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

Java

    public int getTintedGlassThreshold() throws FaceException
    public void setTintedGlassThreshold(int tintedGlassThreshold) throws FaceException

Exceptions

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

Swift

    public var tintedGlassThreshold: Int
        get {
            return Int(try! getTintedGlassThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetTintedGlassThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * tintedGlassThreshold)
    int id3FacePortraitProcessor_SetTintedGlassThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int tintedGlassThreshold)

Returns

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