From 269f807b3158fd8d52fd909044dff0efdece8980 Mon Sep 17 00:00:00 2001 From: yasarba71520 Date: Sun, 30 Oct 2022 17:03:37 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20Gruppe=2030=5F10=5F2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Input/input.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Input/input.cpp diff --git a/Input/input.cpp b/Input/input.cpp new file mode 100644 index 0000000..0ce021f --- /dev/null +++ b/Input/input.cpp @@ -0,0 +1,28 @@ +#include "input.h" + +Input::Input(/* args */) +{ +} + +Input::~Input() +{ +} + +Mat Input::readFile(String filePath) +{ + Mat image = imread(filePath, IMREAD_COLOR); + if(image.empty()) + { + std::cout << "Could not read the image: " << filePath << std::endl; + return Mat(); + //To do:Exception handeling + } + imshow("Display window", image); + waitKey(0); + return image; +} + +void Input::readWebcam() +{ + //To do an Raspberry-Pi +} \ No newline at end of file