Software Archive
Read-only legacy content
17061 Discussions

R200 with Unity, face tracking failed

Yang_W_
Beginner
699 Views

Hi.

I use R200 and Unity, and want to face tracking.

but I'm failed.

Anyone who try face tracking by R200 and Unity?

This is my script without some null check.

//// in Start() method,
{
sm = PXCMSenseManager.CreateInstance();
sm.EnableFace();

PXCMFaceModule face = sm.QueryFace();
PXCMFaceConfiguration face_cfg = face.CreateActiveConfiguration();

face_cfg.detection.isEnabled = true;
face_cfg.detection.maxTrackedFaces = 1;

face_cfg.ApplyChanges();
face_cfg.Dispose();

sm.Init();
}

//// and in Update() method,
{
pxcmStatus  sts = sm.AcquireFrame(false, 0);
...
}

then, sts return "PXCM_STATUS_FEATURE_UNSUPPORTED".

I suspect my CPU (Ivy Bridge Xeon). but other hand F200 is working.

thanks.

0 Kudos
1 Solution
Bryan_B_Intel1
Employee
699 Views

Hello,

Pose isEnabled must be set to false for R200 face tracking to work correctly:
            face_cfg.pose.isEnabled = false;

Here's a link to a C# code sample that might help too: https://software.intel.com/en-us/articles/intel-realsense-depth-camera-r200-code-sample-face-tracking

Hope this helps, Bryan

View solution in original post

0 Kudos
3 Replies
Bryan_B_Intel1
Employee
700 Views

Hello,

Pose isEnabled must be set to false for R200 face tracking to work correctly:
            face_cfg.pose.isEnabled = false;

Here's a link to a C# code sample that might help too: https://software.intel.com/en-us/articles/intel-realsense-depth-camera-r200-code-sample-face-tracking

Hope this helps, Bryan

0 Kudos
Yang_W_
Beginner
699 Views

Hello, Bryan.

Thank you for the information.

It's working !

Again let me thank you.

0 Kudos
Charyyc_Y_
Beginner
699 Views

Hello, Yang W.

Would you mind giving me some advice about face tracking in unity by R200?

 

0 Kudos
Reply