Skip to content

Commit fbcc532

Browse files
committed
Merge pull request opencv#19300 from alkasm:patch-2
2 parents 72894a1 + e3856df commit fbcc532

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)