You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser=argparse.ArgumentParser(description='Video anonymization by face detection', add_help=False)
242
242
parser.add_argument(
243
243
'input', nargs='*',
244
-
help=f'File path(s) or camera device name. It is possible to pass multiple paths by separating them by spaces or by using shell expansion (e.g. `$ deface vids/*.mp4`). If a camera is installed, a live webcam demo can be started by running `$ deface cam` (which is a shortcut for `$ deface -p \'<video0>\'`.')
244
+
help=f'File path(s) or camera device name. It is possible to pass multiple paths by separating them by spaces or by using shell expansion (e.g. `$ deface vids/*.mp4`). Alternatively, you can pass a directory as an input, in which case all files in the directory will be used as inputs. If a camera is installed, a live webcam demo can be started by running `$ deface cam` (which is a shortcut for `$ deface -p \'<video0>\'`.')
245
245
parser.add_argument(
246
246
'--output', '-o', default=None, metavar='O',
247
247
help='Output file name. Defaults to input path + postfix "_anonymized".')
@@ -265,10 +265,10 @@ def parse_cli_args():
265
265
help='Scale factor for face masks, to make sure that masks cover the complete face. Default: 1.3.')
help='Anonymization filter mode for face regions. "blur" applies a strong gaussian blurring, "solid" draws a solid black box, "none" does leaves the input unchanged and "img" replace the face with a custom image. Default: "blur".')
268
+
help='Anonymization filter mode for face regions. "blur" applies a strong gaussian blurring, "solid" draws a solid black box, "none" does leaves the input unchanged and "img" replaces the face with a custom image. Default: "blur".')
269
269
parser.add_argument(
270
270
'--replaceimg', default='replace_img.png',
271
-
help='Anonymization img for face regions. Requires --replacewith img option.')
271
+
help='Anonymization image for face regions. Requires --replacewith img option.')
help='FFMPEG config arguments for encoding output videos. This argument is expected in JSON notation. For a list of possible options, refer to the ffmpeg-imageio docs. Default: \'{"codec": "libx264"}\'.'
0 commit comments