Änderungen Gruppe 30_10_2022
This commit is contained in:
parent
f82511756f
commit
269f807b31
28
Input/input.cpp
Normal file
28
Input/input.cpp
Normal 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…
x
Reference in New Issue
Block a user