summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_HT
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-01-19 10:43:43 +0000
committerStanislaw Halik <sthalik@misaki.pl>2013-01-19 10:43:43 +0000
commit690720f9a09dd4a4d2d79cffc6229f854edfc514 (patch)
treeb86f9999a9a9c1d882fbce7f847292ae7775fde7 /FTNoIR_Tracker_HT
parente467346fef4402c1f30372bc8926924a23f4e22a (diff)
Reduce lock contention, ease off detecting small faces
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@215 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_HT')
-rw-r--r--FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp
index 8c88363b..90dc08e9 100644
--- a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp
+++ b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp
@@ -18,7 +18,7 @@ static void load_settings(ht_config_t* config, Tracker* tracker)
QSettings iniFile( currentFile, QSettings::IniFormat );
iniFile.beginGroup( "HT-Tracker" );
- config->classification_delay = 1000;
+ config->classification_delay = 4000;
config->field_of_view = iniFile.value("fov", 69).toFloat();
config->pyrlk_pyramids = 3;
config->pyrlk_win_size_w = config->pyrlk_win_size_h = 21;
@@ -141,7 +141,7 @@ bool Tracker::GiveHeadPoseData(THeadPoseData* data)
if (WaitForSingleObject(hMutex, 100) == WAIT_OBJECT_0)
{
shm->timer = 0;
- if (WaitForSingleObject(videoWidget->hMutex, 100) == WAIT_OBJECT_0)
+ if (WaitForSingleObject(videoWidget->hMutex, 10) == WAIT_OBJECT_0)
{
memcpy(&videoWidget->videoFrame, &shm->frame, sizeof(ht_video_t));
ReleaseMutex(videoWidget->hMutex);
@@ -183,7 +183,7 @@ VideoWidget::~VideoWidget()
void VideoWidget::paintEvent(QPaintEvent *e)
{
uchar* data = NULL;
- if (WaitForSingleObject(hMutex, 100) == WAIT_OBJECT_0)
+ if (WaitForSingleObject(hMutex, 10) == WAIT_OBJECT_0)
{
if (videoFrame.width > 0)
{