Commit 9267b485 authored by lichun's avatar lichun

push frame when videoCapture opened

parent cd7276f4
......@@ -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