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

# PortraitProcessor.resolutionThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Threshold indicating whether the image resolution is sufficient.

Hint

Default value is 90.

Python

    resolution_threshold: int

Exceptions

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

Dart

    int get resolutionThreshold => getResolutionThreshold();
    set resolutionThreshold(int value) => setResolutionThreshold(value);

Exceptions

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

C#

    public int resolutionThreshold
    {
        get => GetresolutionThreshold();
        set => SetresolutionThreshold(ref value);
    }

Exceptions

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

Java

    public int getResolutionThreshold() throws FaceException
    public void setResolutionThreshold(int resolutionThreshold) throws FaceException

Exceptions

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

Swift

    public var resolutionThreshold: Int
        get {
            return Int(try! getResolutionThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetResolutionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * resolutionThreshold)
    int id3FacePortraitProcessor_SetResolutionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int resolutionThreshold)

Returns

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