Skip to content

Commit 1486050

Browse files
author
Dmitry Sidnev
committed
Update arg help message and fix test
1 parent 7d7e121 commit 1486050

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

demos/background_subtraction_demo/python/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ Options:
133133
output (by default to green field).
134134
--background BACKGROUND
135135
Optional. Background image for background-matting
136-
model.
136+
model. This is a background image that equal to a real
137+
background behind a person on an input frame and must
138+
have the same shape as an input image.
137139
--blur_bgr BLUR_BGR Optional. Background blur strength (by default with
138140
value 0 is not applied).
139141

demos/background_subtraction_demo/python/background_subtraction_demo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ def build_argparser():
6363
args.add_argument('--target_bgr', default=None, type=str,
6464
help='Optional. Background onto which to composite the output (by default to green field).')
6565
args.add_argument('--background', default=None, type=str,
66-
help='Optional. Background image for background-matting model.')
66+
help='Optional. Background image for background-matting model. This is a background image '
67+
'that equal to a real background behind a person on an input frame and must have the '
68+
'same shape as an input image.')
6769
args.add_argument('--blur_bgr', default=0, type=int,
6870
help='Optional. Background blur strength (by default with value 0 is not applied).')
6971

demos/tests/cases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def single_option_cases(key, *args):
715715
TestCase(options={'--no_show': None,
716716
**MONITORS,
717717
'-i': DataPatternArg('instance-segmentation'),
718-
'--bgr': DataPatternArg('instance-segmentation'),
718+
'--background': DataPatternArg('instance-segmentation'),
719719
}),
720720
single_option_cases('-m',
721721
ModelArg('instance-segmentation-person-0007'),

0 commit comments

Comments
 (0)