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

# PortraitProcessor.sharpnessThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Sharpness threshold.

If the sharpness score is above this value, the image sharpness is sufficient.

Hint

Default value is 50.

Python

    sharpness_threshold: int

Exceptions

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

Dart

    int get sharpnessThreshold => getSharpnessThreshold();
    set sharpnessThreshold(int value) => setSharpnessThreshold(value);

Exceptions

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

C#

    public int sharpnessThreshold
    {
        get => GetsharpnessThreshold();
        set => SetsharpnessThreshold(ref value);
    }

Exceptions

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

Java

    public int getSharpnessThreshold() throws FaceException
    public void setSharpnessThreshold(int sharpnessThreshold) throws FaceException

Exceptions

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

Swift

    public var sharpnessThreshold: Int
        get {
            return Int(try! getSharpnessThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetSharpnessThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * sharpnessThreshold)
    int id3FacePortraitProcessor_SetSharpnessThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int sharpnessThreshold)

Returns

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