summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-31 13:47:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-31 13:47:09 +0200
commitccafc5f054733e883bb0ef8b0c698b4c9c86fff9 (patch)
treea12d3a37bb23068f8f0387bcd6331ca2e3e88f48 /tracker-pt
parentcfb2495a4ba7b7dda8b73d9897c9cf5c75abbd83 (diff)
tracker/{pt,aruco}: don't include opencv highgui, videoio is enough
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/camera.cpp10
-rw-r--r--tracker-pt/camera.h2
-rw-r--r--tracker-pt/point_extractor.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/tracker-pt/camera.cpp b/tracker-pt/camera.cpp
index beac9d24..1c393c12 100644
--- a/tracker-pt/camera.cpp
+++ b/tracker-pt/camera.cpp
@@ -6,10 +6,10 @@
*/
#include "camera.h"
-#include <string>
-#include <QDebug>
#include "opentrack-compat/sleep.hpp"
#include "opentrack-compat/camera-names.hpp"
+#include <string>
+#include <QDebug>
void Camera::set_device(const QString& name)
{
@@ -135,15 +135,15 @@ bool CVCamera::_get_frame(cv::Mat* frame)
void CVCamera::_set_fps()
{
- if (cap) cap->set(CV_CAP_PROP_FPS, cam_desired.fps);
+ if (cap) cap->set(cv::CAP_PROP_FPS, cam_desired.fps);
}
void CVCamera::_set_res()
{
if (cap)
{
- cap->set(CV_CAP_PROP_FRAME_WIDTH, cam_desired.res_x);
- cap->set(CV_CAP_PROP_FRAME_HEIGHT, cam_desired.res_y);
+ cap->set(cv::CAP_PROP_FRAME_WIDTH, cam_desired.res_x);
+ cap->set(cv::CAP_PROP_FRAME_HEIGHT, cam_desired.res_y);
}
}
void CVCamera::_set_device_index()
diff --git a/tracker-pt/camera.h b/tracker-pt/camera.h
index 615f7142..e9993855 100644
--- a/tracker-pt/camera.h
+++ b/tracker-pt/camera.h
@@ -9,7 +9,7 @@
#include <opencv2/core/core.hpp>
#include <memory>
-#include <opencv2/highgui.hpp>
+#include <opencv2/videoio.hpp>
#include <string>
#include <QString>
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp
index afd9c0eb..e749934e 100644
--- a/tracker-pt/point_extractor.cpp
+++ b/tracker-pt/point_extractor.cpp
@@ -13,7 +13,7 @@
# include "opentrack-compat/timer.hpp"
#endif
-#include <opencv2/highgui.hpp>
+#include <opencv2/videoio.hpp>
#include <cmath>
#include <algorithm>