Software Archive
Read-only legacy content
17061 Discussions

Getting distance value between face and camera

Yuri_B_1
Beginner
509 Views

Hello everyone.
Could anybody provide example of approach for getting value of distance between camera and users face? I found post which has similar question but answer from there didn't help me. 
I hope that somebody already managed it and could give  helpful advice for best  approach.
Will be really grateful.

 

0 Kudos
2 Replies
Pubudu-Silva_Intel
509 Views

You may just use the depth value provided for each pixel.

 

0 Kudos
samontab
Valued Contributor II
509 Views

Hi Yuri,

If you detect the face using the IR stream, you can just read the depth stream directly at the face location, as they are the same camera.

If you use the color camera to detect the face, you have to project the depth camera into the color camera (the SDK allows you to do that easily) to get the depth values at the face location.

0 Kudos
Reply