Browse Source

Änderungen Gruppe 30_10_2022

pull/1/head
Baran Yasar 1 year ago
parent
commit
269f807b31
1 changed files with 28 additions and 0 deletions
  1. 28
    0
      Input/input.cpp

+ 28
- 0
Input/input.cpp View File

@@ -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
}

Loading…
Cancel
Save