getInterocularDistance method

int getInterocularDistance()

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

return The computed interocular distance (IOD) in pixels. throws FaceException An error has occurred during Face Library execution.

Implementation

int getInterocularDistance() {
  Pointer<Int> pIod = calloc();
  try {
    var err = faceSDK.id3DetectedFace_GetInterocularDistance(_pHandle.value, pIod);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vIod = pIod.value;
    return vIod;
  } finally {
    calloc.free(pIod);
  }
}