From 56dd856405ebf26f8243880035fed2dd688b14a6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 20 Jul 2015 14:29:02 +0200 Subject: for now remove calibration support PT tracker returns garbage when calibrating, Z is zero. Maybe can be reverted and fixed later. --- ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp') diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index 8acddc28..2e488486 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -17,7 +17,6 @@ #include #include #include "opentrack/camera-names.hpp" -#include "opentrack/opencv-calibration.hpp" #include "opentrack/sleep.hpp" typedef struct { @@ -162,17 +161,10 @@ void Tracker::run() if (last_fov != s.fov) { last_fov = s.fov; - if (!get_camera_calibration(s.camera_name, intrinsics, dist_coeffs, grayscale.cols, grayscale.rows, s.fov)) - { - intrinsics.at (0, 0) = focal_length_w; - intrinsics.at (1, 1) = focal_length_h; - intrinsics.at (0, 2) = grayscale.cols/2; - intrinsics.at (1, 2) = grayscale.rows/2; - } - else - { - qDebug() << "got calibration"; - } + intrinsics.at (0, 0) = focal_length_w; + intrinsics.at (1, 1) = focal_length_h; + intrinsics.at (0, 2) = grayscale.cols/2; + intrinsics.at (1, 2) = grayscale.rows/2; } std::vector< aruco::Marker > markers; -- cgit v1.2.3