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

# PortraitProcessor.maleThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Male gender detection threshold.

If the score is higher than this value, the person is probably male.

Hint

Default value is 50.

Python

    male_threshold: int

Exceptions

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

Dart

    int get maleThreshold => getMaleThreshold();
    set maleThreshold(int value) => setMaleThreshold(value);

Exceptions

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

C#

    public int maleThreshold
    {
        get => GetmaleThreshold();
        set => SetmaleThreshold(ref value);
    }

Exceptions

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

Java

    public int getMaleThreshold() throws FaceException
    public void setMaleThreshold(int maleThreshold) throws FaceException

Exceptions

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

Swift

    public var maleThreshold: Int
        get {
            return Int(try! getMaleThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetMaleThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * maleThreshold)
    int id3FacePortraitProcessor_SetMaleThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int maleThreshold)

Returns

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