summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-12 23:19:54 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-24 18:46:12 +0200
commit7e357fcb6c143a61c4f87ffda502f8be021674f0 (patch)
tree147bcd90d7ac414ef9ff1e024abba37f085c950d /tracker-easy/tracker-easy.h
parentf20687d2d5f9b0542fedf0f45291024846d30d28 (diff)
Easy Tracker: removing legacy point tracker camera architecture.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
-rw-r--r--tracker-easy/tracker-easy.h12
1 files changed, 8 insertions, 4 deletions
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 <atomic>
#include <memory>
@@ -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<pt_point_extractor> point_extractor;
- pointer<pt_camera> camera;
+ std::unique_ptr<video::impl::camera> camera;
+ video::impl::camera::info iCameraInfo;
pointer<video_widget> widget;
- pointer<pt_frame> frame;
- pointer<pt_preview> preview_frame;
+
+ video::frame iFrame;
+ cv::Mat iMatFrame;
+ Preview iPreview;
std::atomic<unsigned> point_count { 0 };
std::atomic<bool> ever_success = false;