From 30b5933f6d6f9b7ce01f68ce150798cceeb48c24 Mon Sep 17 00:00:00 2001 From: damian Date: Wed, 3 Feb 2010 10:09:27 +0100 Subject: [PATCH] - geom calib progress printf, num views 100 modified: artvertiser.cpp modified: calibmodel.cpp --- artvertiser/artvertiser.cpp | 6 ++++-- artvertiser/calibmodel.cpp | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/artvertiser/artvertiser.cpp b/artvertiser/artvertiser.cpp index 54636ee..1bb7d48 100644 --- a/artvertiser/artvertiser.cpp +++ b/artvertiser/artvertiser.cpp @@ -103,8 +103,8 @@ using namespace std; #endif #define GL_MIRROR_CLAMP_EXT 0x8742 -#define DEFAULT_WIDTH 1024 -#define DEFAULT_HEIGHT 576 +#define DEFAULT_WIDTH 640 +#define DEFAULT_HEIGHT 480 #define DEFAULT_V4LDEVICE 0 #define NUMARTVERTS 5 @@ -1289,6 +1289,8 @@ static void geomCalibIdle(void) geom_calib_nb_homography++; } + printf("geom calib: %.2f%%\n", 100.0f*geom_calib_nb_homography/150.0f ); + if (geom_calib_nb_homography>=150) { if (calib->Calibrate( diff --git a/artvertiser/calibmodel.cpp b/artvertiser/calibmodel.cpp index 3956ee9..e36af50 100644 --- a/artvertiser/calibmodel.cpp +++ b/artvertiser/calibmodel.cpp @@ -66,14 +66,13 @@ bool CalibModel::buildCached(int nbcam, CvCapture *capture, bool cache, planar_o //detector.ransac_stop_support = 50; //detector.non_linear_refine_threshold = 15.0f; //detector.point_detector_tau = 10; - detector.views_number = 100; // A lower threshold will allow detection in harder conditions, but // might lead to false positives. detector.match_score_threshold=.03f; detector.min_view_rate=.1; - detector.views_number = 100; + detector.views_number = 1000; // damian below //detector.min_view_rate = .2; -- 2.11.4.GIT