diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-02-03 13:39:45 +0100 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-02-07 13:24:14 +0100 |
commit | 57285c2269f53bc7ae61f40289edc9083432bc8a (patch) | |
tree | 4b60a68c39c21fe6ef8b13ea0abcbe9aa2bcc2e0 /tracker-kinect-face/kinect_face_tracker.h | |
parent | e2582c127addd7a3eaafb8cf8a63a5221c7aac20 (diff) |
Kinect: Better body look-up algorithm that should allow someone to look over your shoulder without the tracker getting confused.
Diffstat (limited to 'tracker-kinect-face/kinect_face_tracker.h')
-rw-r--r-- | tracker-kinect-face/kinect_face_tracker.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tracker-kinect-face/kinect_face_tracker.h b/tracker-kinect-face/kinect_face_tracker.h index 220a126f..de71f081 100644 --- a/tracker-kinect-face/kinect_face_tracker.h +++ b/tracker-kinect-face/kinect_face_tracker.h @@ -74,6 +74,8 @@ private: void ProcessFaces(); HRESULT UpdateBodyData(IBody** ppBodies); void ExtractFaceRotationInDegrees(const Vector4* pQuaternion, float* pPitch, float* pYaw, float* pRoll); + static IBody* FindClosestBody(IBody** aBodies); + static IBody* FindTrackedBodyById(IBody** aBodies,UINT64 aTrackingId); // Current Kinect IKinectSensor* m_pKinectSensor; @@ -110,4 +112,7 @@ private: // std::unique_ptr<cv_video_widget> iVideoWidget; std::unique_ptr<QLayout> iLayout; + + // Id of the body currently being tracked + UINT64 iTrackingId = 0; }; |