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

# PortraitProcessor.faceDetectionImageSize Property

Module: PortraitProcessor

Type: int

## Definition

The size, in pixels, of the downscaled image used for face detection.

Hint

Default value is 256. Low values tend to ignore small faces in the input image, while higher values tend to take longer to process.

Python

    face_detection_image_size: int

Exceptions

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

Dart

    int get faceDetectionImageSize => getFaceDetectionImageSize();
    set faceDetectionImageSize(int value) => setFaceDetectionImageSize(value);

Exceptions

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

C#

    public int faceDetectionImageSize
    {
        get => GetfaceDetectionImageSize();
        set => SetfaceDetectionImageSize(ref value);
    }

Exceptions

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

Java

    public int getFaceDetectionImageSize() throws FaceException
    public void setFaceDetectionImageSize(int faceDetectionImageSize) throws FaceException

Exceptions

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

Swift

    public var faceDetectionImageSize: Int
        get {
            return Int(try! getFaceDetectionImageSize())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetFaceDetectionImageSize (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * faceDetectionImageSize)
    int id3FacePortraitProcessor_SetFaceDetectionImageSize (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int faceDetectionImageSize)

Returns

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