Merge pull request #19300 from alkasm:patch-2

This commit is contained in:
Alexander Alekhin 2021-01-12 18:28:58 +00:00
commit fbcc532de5

View File

@ -18,7 +18,7 @@ else:
## [capture]
capture = cv.VideoCapture(cv.samples.findFileOrKeep(args.input))
if not capture.isOpened:
if not capture.isOpened():
print('Unable to open: ' + args.input)
exit(0)
## [capture]