- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In my project I have to know the Distance between the Depth Camera and the user's face
Is there any function or sample works that I can use in Unity to find the exact distance? I can measure the distance between the middle of two eye and using it for zoom in/out but I need the exact distance from camera and face.
Thanks
Majid
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can access the Z (depth) information of all pixels
Refer to PXCFaceData::DetectionData::QueryFaceAverageDepth in the reference manual
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are working in the color camera, you can project the depth camera to the color camera, and then just read the depth value at the face location.
Get the depth values projected at the color camera location with this (defined in pxcprojection.h):
PXCImage* PXCAPI CreateDepthImageMappedToColor(PXCImage *depth, PXCImage *color)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page