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

# PortraitProcessor.pixelationThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Pixelation detection threshold.

Above this threshold, the image is probably pixelated.

Hint

Default value is 90.

Python

    pixelation_threshold: int

Exceptions

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

Dart

    int get pixelationThreshold => getPixelationThreshold();
    set pixelationThreshold(int value) => setPixelationThreshold(value);

Exceptions

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

C#

    public int pixelationThreshold
    {
        get => GetpixelationThreshold();
        set => SetpixelationThreshold(ref value);
    }

Exceptions

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

Java

    public int getPixelationThreshold() throws FaceException
    public void setPixelationThreshold(int pixelationThreshold) throws FaceException

Exceptions

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

Swift

    public var pixelationThreshold: Int
        get {
            return Int(try! getPixelationThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetPixelationThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * pixelationThreshold)
    int id3FacePortraitProcessor_SetPixelationThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int pixelationThreshold)

Returns

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