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

# PortraitProcessor.makeupThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Make-up detection threshold.

If the detection score is above this value, the persone is definitely wearing make-up.

Hint

Default value 50.

Python

    makeup_threshold: int

Exceptions

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

Dart

    int get makeupThreshold => getMakeupThreshold();
    set makeupThreshold(int value) => setMakeupThreshold(value);

Exceptions

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

C#

    public int makeupThreshold
    {
        get => GetmakeupThreshold();
        set => SetmakeupThreshold(ref value);
    }

Exceptions

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

Java

    public int getMakeupThreshold() throws FaceException
    public void setMakeupThreshold(int makeupThreshold) throws FaceException

Exceptions

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

Swift

    public var makeupThreshold: Int
        get {
            return Int(try! getMakeupThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetMakeupThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * makeupThreshold)
    int id3FacePortraitProcessor_SetMakeupThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int makeupThreshold)

Returns

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