From 33c38be354ee6bf71fce13cc883f5b7b82ef3c78 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 29 Jan 2013 12:17:06 +0000 Subject: hopefully it'll start now? git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@246 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'FTNoIR_Tracker_HT') diff --git a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp index 78ab00cb..cac2810f 100644 --- a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp +++ b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp @@ -77,8 +77,8 @@ static void load_settings(ht_config_t* config, Tracker* tracker) config->keypoint_quality = 12; config->keypoint_distance = 2.3f; config->keypoint_3distance = 6; - config->force_width = 640; - config->force_height = 480; + config->force_width = 0; + config->force_height = 0; config->force_fps = iniFile.value("fps", 0).toInt(); config->camera_index = iniFile.value("camera-index", -1).toInt(); config->ransac_num_iters = 100; @@ -161,12 +161,6 @@ void Tracker::StartTracker(HWND parent) shm->frame.channels = shm->frame.width = shm->frame.height = 0; shm->pause = shm->terminate = shm->running = false; shm->timer = 0; - switch (subprocess.state()) - { - case QProcess::Running: - case QProcess::Starting: - subprocess.kill(); - } subprocess.setWorkingDirectory(QCoreApplication::applicationDirPath() + "/tracker-ht"); subprocess.start(QCoreApplication::applicationDirPath() + "/tracker-ht/headtracker-ftnoir.exe"); } -- cgit v1.2.3