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

# PortraitProcessor.noiseThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Threshold for confirming the presence of noise in the image.

Hint

Default value is 90.

Python

    noise_threshold: int

Exceptions

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

Dart

    int get noiseThreshold => getNoiseThreshold();
    set noiseThreshold(int value) => setNoiseThreshold(value);

Exceptions

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

C#

    public int noiseThreshold
    {
        get => GetnoiseThreshold();
        set => SetnoiseThreshold(ref value);
    }

Exceptions

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

Java

    public int getNoiseThreshold() throws FaceException
    public void setNoiseThreshold(int noiseThreshold) throws FaceException

Exceptions

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

Swift

    public var noiseThreshold: Int
        get {
            return Int(try! getNoiseThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetNoiseThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * noiseThreshold)
    int id3FacePortraitProcessor_SetNoiseThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int noiseThreshold)

Returns

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