summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/cv-point-extractor.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-13 10:36:47 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-24 18:46:12 +0200
commit547f3314f2a4e75a5d2c540a5f1221e9c59277ae (patch)
treecc3f11d40bb4a73d219eff03559cd4cc0335a9af /tracker-easy/cv-point-extractor.h
parent12e7ec5bdac206a3072f24577e897c79d6b0189f (diff)
Easy Tracker: OpenCV point extractor.
Diffstat (limited to 'tracker-easy/cv-point-extractor.h')
-rw-r--r--tracker-easy/cv-point-extractor.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tracker-easy/cv-point-extractor.h b/tracker-easy/cv-point-extractor.h
new file mode 100644
index 00000000..65293e57
--- /dev/null
+++ b/tracker-easy/cv-point-extractor.h
@@ -0,0 +1,34 @@
+/* Copyright (c) 2012 Patrick Ruoff
+ * Copyright (c) 2015-2016 Stanislaw Halik <sthalik@misaki.pl>
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ */
+
+#pragma once
+
+#include "tracker-easy-api.h"
+
+#include <vector>
+
+#include <opencv2/core.hpp>
+#include <opencv2/imgproc.hpp>
+
+
+using namespace numeric_types;
+
+
+class CvPointExtractor final : public pt_point_extractor
+{
+public:
+ // extracts points from frame and draws some processing info into frame, if draw_output is set
+ // dt: time since last call in seconds
+ void extract_points(const cv::Mat& frame, cv::Mat& preview_frame, std::vector<vec2>& points, std::vector<vec2>& imagePoints) override;
+ CvPointExtractor(const QString& module_name);
+
+ pt_settings s;
+};
+
+
+