Commit 04b2f2c5 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge remote-tracking branch 'upstream/3.4' into merge-3.4

parents afad1029 3244184d
......@@ -68,7 +68,10 @@ int main(int argc, char* argv[])
else
videoCapture.open(parser.get<int>("camera"));
videoCapture >> inputFrame;
if (videoCapture.isOpened())
{
videoCapture >> inputFrame;
}
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