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

# PortraitProcessor.naturalSkinColorThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Natural skin color threshold.

Above this threshold, th skin of the person looks natural.

Hint

Default value is 5.

Python

    natural_skin_color_threshold: int

Exceptions

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

Dart

    int get naturalSkinColorThreshold => getNaturalSkinColorThreshold();
    set naturalSkinColorThreshold(int value) => setNaturalSkinColorThreshold(value);

Exceptions

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

C#

    public int naturalSkinColorThreshold
    {
        get => GetnaturalSkinColorThreshold();
        set => SetnaturalSkinColorThreshold(ref value);
    }

Exceptions

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

Java

    public int getNaturalSkinColorThreshold() throws FaceException
    public void setNaturalSkinColorThreshold(int naturalSkinColorThreshold) throws FaceException

Exceptions

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

Swift

    public var naturalSkinColorThreshold: Int
        get {
            return Int(try! getNaturalSkinColorThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetNaturalSkinColorThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * naturalSkinColorThreshold)
    int id3FacePortraitProcessor_SetNaturalSkinColorThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int naturalSkinColorThreshold)

Returns

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