diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-03-22 21:34:47 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-03-22 21:34:47 +0000 |
commit | 277cc7603eb6b4d9fed6a0a2de245e4cdde6ee8b (patch) | |
tree | 1774fa28018005e4c96f5717d6d461dfb0123d5f /FaceTrackNoIR/tracker.cpp | |
parent | be57b6b8d3f8339980df08f196d23415f7974418 (diff) |
Successfully use console app for faceAPI 3.2.6. combined with tracker class in DLL.
Even managed to get the video-widget connected to the main-window...
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@56 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.cpp')
-rw-r--r-- | FaceTrackNoIR/tracker.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FaceTrackNoIR/tracker.cpp b/FaceTrackNoIR/tracker.cpp index 39bc8dce..01739389 100644 --- a/FaceTrackNoIR/tracker.cpp +++ b/FaceTrackNoIR/tracker.cpp @@ -234,6 +234,11 @@ QFrame *video_frame; /** destructor empty **/
Tracker::~Tracker() {
+ // Stop the Tracker
+ if (pTracker) {
+ pTracker->StopTracker( true );
+ }
+
// Trigger thread to stop
::SetEvent(m_StopThread);
@@ -438,7 +443,7 @@ void Tracker::run() { }
else {
if (setEngineStop) { // Only stop engine when option is checked
- pTracker->StopTracker();
+ pTracker->StopTracker( false );
}
}
qDebug() << "Tracker::run() says StartStop pressed, do_tracking =" << Tracker::do_tracking;
|