From 85fc6ac25d350950be56ba47b06c247216f2e22a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 11 Feb 2019 20:07:41 +0100 Subject: video/widget: externalize opencv code --- cv/video-widget.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cv/video-widget.hpp (limited to 'cv/video-widget.hpp') 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 + * + * 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 + +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; +}; -- cgit v1.2.3