hotfix: call isOpened() in python bg sub tutorial
https://github.com/opencv/opencv/issues/19299
This commit is contained in:
parent
62420b900e
commit
e3856dfe5d
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user