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 Imagein Depth image to process.
Returns
intThe estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.