summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index a221c2ff..099c1f85 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -127,7 +127,6 @@ void Tracker::load_settings()
Tracker::Tracker()
{
- fresh = false;
stop = false;
videoWidget = NULL;
layout = NULL;
@@ -158,20 +157,11 @@ void Tracker::StartTracker(QFrame* videoframe)
videoWidget->show();
this->layout = layout;
load_settings();
- connect(&timer, SIGNAL(timeout()), this, SLOT(paint_widget()));
- timer.start(50);
start();
for (int i = 0; i < 6; i++)
pose[i] = 0;
}
-void Tracker::paint_widget() {
- if (fresh) {
- fresh = false;
- videoWidget->update();
- }
-}
-
#define HT_PI 3.1415926535
void Tracker::run()
@@ -232,10 +222,9 @@ void Tracker::run()
frame = color;
- if (frame.rows > 0 && !fresh)
+ if (frame.rows > 0)
{
videoWidget->update_image(frame.data, frame.cols, frame.rows);
- fresh = true;
}
if (markers.size() == 1 && markers[0].size() == 4) {