TrackedFace.getDistanceToCamera Method¶
Module: TrackedFace
Definition¶
Gets the distance between the detected face and the camera when using a depth map in pixels.
get_distance_to_camera(self, depth_image: Image) -> int
Parameters
depth_image
Imagein Depth image to process.
Returns
int
The estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
int getDistanceToCamera(Image depthImage)
Parameters
depthImage
Imagein Depth image to process.
Returns
int
The estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
public int GetDistanceToCamera(Image depthImage)
Parameters
depthImage
Imagein Depth image to process.
Returns
int
The estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
public int getDistanceToCamera(Image depthImage) throws FaceException
Parameters
depthImage
Imagein Depth image to process.
Returns
int
The estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
public func getDistanceToCamera(depthImage: Image) throws -> Int32
Parameters
depthImage
Imagein Depth image to process.
Returns
Int
The estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
int id3TrackedFace_GetDistanceToCamera (
ID3_TRACKED_FACE hTrackedFace,
ID3_FACE_IMAGE hDepthImage,
int * distanceToCamera)
Parameters
hTrackedFace
ID3_TRACKED_FACEin Handle to the TrackedFace object.hDepthImage
ID3_FACE_IMAGEin Depth image to process.distanceToCamera
int *out The estimated distance to camera in pixels.
Returns