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

# DetectedFace.getInterocularDistance Method

Module: DetectedFace

## Definition

Gets the distance between the eyes (IOD) of the detected face in pixels.

Python

    get_interocular_distance(self) -> int

Returns

> `int`
> The computed interocular distance (IOD) in pixels.

Exceptions

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

Dart

    int getInterocularDistance()

Returns

> `int`
> The computed interocular distance (IOD) in pixels.

Exceptions

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

C#

    public int GetInterocularDistance()

Returns

> `int`
> The computed interocular distance (IOD) in pixels.

Exceptions

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

Java

    public int getInterocularDistance() throws FaceException

Returns

> `int`
> The computed interocular distance (IOD) in pixels.

Exceptions

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

Swift

    public func getInterocularDistance() throws -> Int32

Returns

> `Int`
> The computed interocular distance (IOD) in pixels.

Exceptions

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

C

    int id3DetectedFace_GetInterocularDistance (
        ID3_DETECTED_FACE hDetectedFace,
        int * iod)

Parameters

> `hDetectedFace` ID3_DETECTED_FACE
> in Handle to the DetectedFace object.
> `iod` int *
> out The computed interocular distance (IOD) in pixels.

Returns

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