TrackedFace.getDistanceToCamera Method

Module: TrackedFace

Definition

Gets the distance between the detected face and the camera when using a depth map in pixels.

int getDistanceToCamera(Image depthImage)

Parameters

depthImage Image
in Depth image to process.

Returns

int
The estimated distance to camera in pixels.

Exceptions

An error has occurred during Face Library execution.