Compare commits

..

No commits in common. "e45f46c102b5b7c3ee1434bd546e6aaeca812928" and "b9965ee95674d664aa79109ed9b0e42d2d6c3194" have entirely different histories.

2 changed files with 7 additions and 9 deletions

View File

@ -39,19 +39,17 @@ Mat Input::readWebcam()
Mat image; Mat image;
if(!cap.isOpened()) { if(!cap.isOpened()) {
cout << "Video capture not opened" << std::endl; cout << "Fehler";
return Mat(); return Mat();
} }
if(!cap.grab()) { cap.grab();
cout << "Could not grab frame from camera" << std::endl;
return Mat();
}
cap.retrieve(image); cap.retrieve(image);
return image; return image;
} }
void Input::freeWebcam() void Input::freeWebcam()
{ {
this->cap.release(); this->cap.release();
} }

View File

@ -7,8 +7,8 @@ int main(void)
cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_WARNING); cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_WARNING);
const int thresholdBinary = 140; const int thresholdBinary = 140;
const int videoHeight = 720; const int videoHeight = 240;
const int videoWidth = 1280; const int videoWidth = 320;
const int gaussKernelSize = 21; const int gaussKernelSize = 21;
const int thresholdCanny1 = 50; const int thresholdCanny1 = 50;
const int thresholdCanny2 = 100; const int thresholdCanny2 = 100;
@ -20,4 +20,4 @@ int main(void)
char a; char a;
std::cin >> a; std::cin >> a;
lfr.endLoop(); lfr.endLoop();
} }