Skip to content

Commit e3856df

Browse files
alkasmAlexander Reynolds
authored andcommitted
hotfix: call isOpened() in python bg sub tutorial
opencv#19299
1 parent 62420b9 commit e3856df

File tree

1 file changed

+1
-1
lines changed
  • samples/python/tutorial_code/video/background_subtraction

1 file changed

+1
-1
lines changed

samples/python/tutorial_code/video/background_subtraction/bg_sub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
## [capture]
2020
capture = cv.VideoCapture(cv.samples.findFileOrKeep(args.input))
21-
if not capture.isOpened:
21+
if not capture.isOpened():
2222
print('Unable to open: ' + args.input)
2323
exit(0)
2424
## [capture]

0 commit comments

Comments
 (0)