summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2013-04-12 15:16:21 +0200
committerWim Vriend <facetracknoir@gmail.com>2013-04-12 15:16:21 +0200
commit3cd6b8f2e6f3a2de8dce573fe457eddca3c8ee1f (patch)
tree23d137dec718df3d1ce3c9fafbf8d5b77a9b3660 /ftnoir_tracker_ht
parentbcbdd10779d86d491060c6010e4ac927964f3c32 (diff)
parent30cafb02a28abba475205d94aebb6b2ae4e3f4bc (diff)
Merge branch 'posix' of ssh://git.code.sf.net/p/facetracknoir/codegit into posix
Diffstat (limited to 'ftnoir_tracker_ht')
-rw-r--r--ftnoir_tracker_ht/ftnoir_tracker_ht.cpp15
-rw-r--r--ftnoir_tracker_ht/ht-api.h1
2 files changed, 9 insertions, 7 deletions
diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
index 59af6991..7bf6aad6 100644
--- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
+++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
@@ -111,19 +111,20 @@ static void load_settings(ht_config_t* config, Tracker* tracker)
config->pyrlk_win_size_w = config->pyrlk_win_size_h = 21;
config->max_keypoints = 200;
config->keypoint_quality = 2;
- config->keypoint_distance = 1;
- config->keypoint_3distance = 4;
+ config->keypoint_distance = 1.2;
+ config->keypoint_3distance = 3;
+ config->keypoint_9distance = 9;
//config->force_width = 640;
//config->force_height = 480;
config->force_fps = iniFile.value("fps", 0).toInt();
config->camera_index = iniFile.value("camera-index", -1).toInt();
config->ransac_num_iters = 100;
- config->ransac_max_reprojection_error = 3.05;
- config->ransac_max_inlier_error = 3.14;
- config->ransac_max_mean_error = 3;
+ config->ransac_max_reprojection_error = 2.8;
+ config->ransac_max_inlier_error = 2.9;
+ config->ransac_max_mean_error = 2.7;
config->ransac_abs_max_mean_error = 12;
config->debug = 1;
- config->ransac_min_features = 0.86;
+ config->ransac_min_features = 0.83;
int res = iniFile.value("resolution", 0).toInt();
if (res < 0 || res >= (int)(sizeof(*resolution_choices) / sizeof(resolution_tuple)))
res = 0;
@@ -131,7 +132,7 @@ static void load_settings(ht_config_t* config, Tracker* tracker)
config->force_width = r.width;
config->force_height = r.height;
config->user_landmarks = false; //iniFile.value("use-bashed-coords").toBool();
- config->flandmark_delay = 150;
+ config->flandmark_delay = 100;
#if 0
if (config->user_landmarks)
{
diff --git a/ftnoir_tracker_ht/ht-api.h b/ftnoir_tracker_ht/ht-api.h
index c09dbf55..95163f95 100644
--- a/ftnoir_tracker_ht/ht-api.h
+++ b/ftnoir_tracker_ht/ht-api.h
@@ -30,6 +30,7 @@ typedef struct ht_config {
int keypoint_quality;
float keypoint_distance;
float keypoint_3distance;
+ float keypoint_9distance;
int force_width;
int force_height;
int force_fps;