DetectedFace.getDistanceToCamera Method¶
Module: DetectedFace
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_imageImagein Depth image to process.
Returns
intThe estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
int getDistanceToCamera(Image depthImage)
Parameters
depthImageImagein Depth image to process.
Returns
intThe estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
public int GetDistanceToCamera(Image depthImage)
Parameters
depthImageImagein Depth image to process.
Returns
intThe estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
public int getDistanceToCamera(Image depthImage) throws FaceException
Parameters
depthImageImagein Depth image to process.
Returns
intThe estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
public func getDistanceToCamera(depthImage: Image) throws -> Int32
Parameters
depthImageImagein Depth image to process.
Returns
IntThe estimated distance to camera in pixels.
Exceptions
An error has occurred during Face Library execution.
int id3DetectedFace_GetDistanceToCamera (
ID3_DETECTED_FACE hDetectedFace,
ID3_FACE_IMAGE hDepthImage,
int * distanceToCamera)
Parameters
hDetectedFaceID3_DETECTED_FACEin Handle to the DetectedFace object.hDepthImageID3_FACE_IMAGEin Depth image to process.distanceToCameraint *out The estimated distance to camera in pixels.
Returns