Commit 3244184d authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #2148 from lyron3:3.4

parents cd7276f4 9267b485
...@@ -68,7 +68,10 @@ int main(int argc, char* argv[]) ...@@ -68,7 +68,10 @@ int main(int argc, char* argv[])
else else
videoCapture.open(parser.get<int>("camera")); videoCapture.open(parser.get<int>("camera"));
videoCapture >> inputFrame; if (videoCapture.isOpened())
{
videoCapture >> inputFrame;
}
if(inputFrame.empty()) if(inputFrame.empty())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment