summaryrefslogtreecommitdiffhomepage
path: root/cv/video-widget.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-11 20:07:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-11 20:21:36 +0100
commit85fc6ac25d350950be56ba47b06c247216f2e22a (patch)
tree6a4b4a65e9084c9595c28c4045824376a8c577d3 /cv/video-widget.hpp
parent5d6cccb406e4aa4fe3e8430690296e5f59474e48 (diff)
video/widget: externalize opencv code
Diffstat (limited to 'cv/video-widget.hpp')
-rw-r--r--cv/video-widget.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/cv/video-widget.hpp b/cv/video-widget.hpp
new file mode 100644
index 00000000..9d62f19e
--- /dev/null
+++ b/cv/video-widget.hpp
@@ -0,0 +1,20 @@
+/* Copyright (c) 2019 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 "video/video-widget.hpp"
+#include <opencv2/core.hpp>
+
+struct cv_video_widget final : video_widget
+{
+ cv_video_widget(QWidget* parent = nullptr);
+ void update_image(const cv::Mat& frame);
+
+private:
+ cv::Mat frame2, frame3;
+};