summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-10-22 15:28:08 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-10-22 15:28:08 +0000
commitc4f8fe0c097a3282270db7eecda4c7eb533b99fc (patch)
treea37079a7aa6f10d91f062ba91536b99f11f925fc /FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp
parent72925e9a82bfcd0c8be1805076c447472c056dc6 (diff)
Preparing release 1.6
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@93 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp')
-rw-r--r--FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp b/FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp
index ed7ae426..181a0e1d 100644
--- a/FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp
+++ b/FTNoIR_Tracker_SM/ftnoir_tracker_faceapi.cpp
@@ -111,7 +111,12 @@ bool FTNoIR_Tracker_SM::GiveHeadPoseData(THeadPoseData *data)
data->yaw = pMemData->data.new_pose.head_rot.y_rads * 57.295781f; // From rads to degrees
data->pitch = pMemData->data.new_pose.head_rot.x_rads * 57.295781f;
data->roll = pMemData->data.new_pose.head_rot.z_rads * 57.295781f;
-
+
+ //
+ // Reset the handshake, to let faceAPI know we're still here!
+ //
+ pMemData->handshake = 0;
+
ReleaseMutex(hSMMutex);
return ( pMemData->data.new_pose.confidence > 0 );
}