diff options
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/camera.cpp | 6 | ||||
-rw-r--r-- | tracker-pt/camera.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tracker-pt/camera.cpp b/tracker-pt/camera.cpp index 600ab26a..ee021d4c 100644 --- a/tracker-pt/camera.cpp +++ b/tracker-pt/camera.cpp @@ -125,15 +125,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 e73d9dff..d0dfdd84 100644 --- a/tracker-pt/camera.h +++ b/tracker-pt/camera.h @@ -7,9 +7,9 @@ #pragma once -#include <opencv2/core/core.hpp> +#include <opencv2/core.hpp> #include <memory> -#include <opencv2/highgui.hpp> +#include <opencv2/videoio.hpp> #include <string> struct CamInfo |