PortraitProcessor.maleThreshold Property

Module: PortraitProcessor

Type: int

Definition

Male gender detection threshold.

If the score is above this value, the person is probably a male.

Hint

Default value is 50.

male_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get maleThreshold => getMaleThreshold();
set maleThreshold(int value) => setMaleThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int maleThreshold
{
    get => GetmaleThreshold();
    set => SetmaleThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getMaleThreshold() throws FaceException
public void setMaleThreshold(int maleThreshold) throws FaceException

Exceptions

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

Exceptions

An error has occurred during Face Library execution.
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.