Processing hinzugefügt V2

This commit is contained in:
yasarba71520 committed 2022-11-01 14:18:02 +01:00
1 parent b316d0ab81
commit d43cedf6f3
5 files changed
+36 -4

No files matched your search

+7 -2
View File
@@ -25,8 +25,8 @@ Mat Input::readFile(String filePath)
Mat Input::readWebcam()
{
const int VID_HEIGHT = 1232;
const int VID_WIDTH = 1640;
const int VID_HEIGHT = 240;
const int VID_WIDTH = 320;
Mat image;
VideoCapture cap(0);
@@ -36,9 +36,14 @@ Mat Input::readWebcam()
if(!cap.isOpened()) {
cout << "Fehler";
return Mat();
return Mat();
return Mat();
}
cap.read(image);
imshow("Display window", image);
waitKey(0);
return image;
}