From 7e357fcb6c143a61c4f87ffda502f8be021674f0 Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Fri, 12 Apr 2019 23:19:54 +0200 Subject: Easy Tracker: removing legacy point tracker camera architecture. --- tracker-easy/tracker-easy.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tracker-easy/tracker-easy.h') diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h index fe99ba85..03e603bd 100644 --- a/tracker-easy/tracker-easy.h +++ b/tracker-easy/tracker-easy.h @@ -12,6 +12,8 @@ #include "tracker-easy-api.h" #include "cv/numeric.hpp" #include "video/video-widget.hpp" +#include "video/camera.hpp" +#include "frame.hpp" #include #include @@ -42,7 +44,6 @@ struct EasyTracker : QThread, ITracker bool center() override; int get_n_points(); - [[nodiscard]] bool get_cam_info(pt_camera_info& info); private: void run() override; @@ -64,10 +65,13 @@ private: int preview_width = 320, preview_height = 240; pointer point_extractor; - pointer camera; + std::unique_ptr camera; + video::impl::camera::info iCameraInfo; pointer widget; - pointer frame; - pointer preview_frame; + + video::frame iFrame; + cv::Mat iMatFrame; + Preview iPreview; std::atomic point_count { 0 }; std::atomic ever_success = false; -- cgit v1.2.3