diff options
-rw-r--r-- | facetracknoir/tracker.cpp | 6 | ||||
-rw-r--r-- | ftnoir_tracker_base/ftnoir_tracker_base.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index 3f826f3f..03c521c6 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -159,6 +159,12 @@ void Tracker::run() { // for kalman
if (Libraries->pFilter)
Libraries->pFilter->Initialize();
+
+ if (Libraries->pTracker)
+ Libraries->pTracker->NotifyCenter();
+
+ if (Libraries->pSecondTracker)
+ Libraries->pSecondTracker->NotifyCenter();
}
if (getTrackingActive()) {
diff --git a/ftnoir_tracker_base/ftnoir_tracker_base.h b/ftnoir_tracker_base/ftnoir_tracker_base.h index b72be93e..182a364c 100644 --- a/ftnoir_tracker_base/ftnoir_tracker_base.h +++ b/ftnoir_tracker_base/ftnoir_tracker_base.h @@ -59,6 +59,8 @@ struct ITracker virtual bool GiveHeadPoseData(double *data) = 0;
virtual void WaitForExit() = 0;
+
+ virtual void NotifyCenter() {}
};
typedef ITracker* ITrackerPtr;
|