summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-01-29 12:17:06 +0000
committerStanislaw Halik <sthalik@misaki.pl>2013-01-29 12:17:06 +0000
commit33c38be354ee6bf71fce13cc883f5b7b82ef3c78 (patch)
treeca7d4d1eabb9dd038163f5d77e83eff1441b6aa4
parent28ab5fece3b83ac5ac627bc2d73f66d6eeb94a79 (diff)
hopefully it'll start now?
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@246 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rw-r--r--FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp10
1 files changed, 2 insertions, 8 deletions
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");
}