Skip to content

Commit 04b2f2c

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents afad102 + 3244184 commit 04b2f2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/bioinspired/samples/retinaDemo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ int main(int argc, char* argv[])
6868
else
6969
videoCapture.open(parser.get<int>("camera"));
7070

71-
videoCapture >> inputFrame;
71+
if (videoCapture.isOpened())
72+
{
73+
videoCapture >> inputFrame;
74+
}
7275

7376
if(inputFrame.empty())
7477
{

0 commit comments

Comments
 (0)