summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-07 17:21:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-07 17:21:27 +0100
commitee82f14d1f2bbdc8fd7c0898e0c47494e4e7362d (patch)
tree4abe16c8597cb4068fb4d3d3019c743ab5fa1e06 /ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
parent167e1517c64974ca0a7de6ea07de53df57e2b4b7 (diff)
fix flicker, hopefully fix pitch
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index a918d020..e063be62 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -280,12 +280,12 @@ start:
char buf[128];
+ frame = color.clone();
+
::sprintf(buf, "Hz: %d", last_fps);
cv::putText(frame, buf, cv::Point(10, 32), cv::FONT_HERSHEY_PLAIN, scale, cv::Scalar(0, 255, 0), scale);
::sprintf(buf, "Jiffies: %ld", (long) (10000 * (time - tm) / freq));
cv::putText(frame, buf, cv::Point(10, 54), cv::FONT_HERSHEY_PLAIN, scale, cv::Scalar(80, 255, 0), scale);
-
- frame = color;
if (markers.size() == 1 && markers[0].size() == 4) {
const aruco::Marker& m = markers.at(0);
@@ -362,7 +362,7 @@ start:
}
if (frame.rows > 0)
- videoWidget->update_image(frame.data, frame.cols, frame.rows);
+ videoWidget->update_image(frame);
}
}