From 277cc7603eb6b4d9fed6a0a2de245e4cdde6ee8b Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Tue, 22 Mar 2011 21:34:47 +0000 Subject: 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 --- FaceTrackNoIR/UIElements/aboutFaceTrackNoIR.png | Bin 28783 -> 28821 bytes FaceTrackNoIR/tracker.cpp | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'FaceTrackNoIR') diff --git a/FaceTrackNoIR/UIElements/aboutFaceTrackNoIR.png b/FaceTrackNoIR/UIElements/aboutFaceTrackNoIR.png index 97ff1d1f..a7d80c1b 100644 Binary files a/FaceTrackNoIR/UIElements/aboutFaceTrackNoIR.png and b/FaceTrackNoIR/UIElements/aboutFaceTrackNoIR.png differ 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; -- cgit v1.2.3