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

# FaceEncoder.minimalIod Property

Module: FaceEncoder

Type: int

## Definition

Minimal interocular distance (IOD) in pixels required to perform a face encoding.

Hint

Default value is 30 pixels. It is not recommended to change this value.

Warning

Reducing the minimal required IOD to encode smaller face images may create unreliable face templates and significantly degrade recognition performances.

Python

    minimal_iod: int

Exceptions

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

Dart

    int get minimalIod => getMinimalIod();
    set minimalIod(int value) => setMinimalIod(value);

Exceptions

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

C#

    public int minimalIod
    {
        get => GetminimalIod();
        set => SetminimalIod(ref value);
    }

Exceptions

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

Java

    public int getMinimalIod() throws FaceException
    public void setMinimalIod(int minimalIod) throws FaceException

Exceptions

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

Swift

    public var minimalIod: Int
        get {
            return Int(try! getMinimalIod())
        }
    }

Exceptions

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

C

    int id3FaceEncoder_GetMinimalIod (ID3_FACE_ENCODER hFaceEncoder, int * minimalIod)
    int id3FaceEncoder_SetMinimalIod (ID3_FACE_ENCODER hFaceEncoder, int minimalIod)

Returns

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