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
Copy file name to clipboardExpand all lines: docs/musicalgestures/_blurfaces.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## mg_blurfaces
10
10
11
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_blurfaces.py#L32)
11
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_blurfaces.py#L33)
12
12
13
13
```python
14
14
defmg_blurfaces(
@@ -18,7 +18,8 @@ def mg_blurfaces(
18
18
mask_scale=1.0,
19
19
ellipse=True,
20
20
draw_scores=False,
21
-
coordinates=False,
21
+
save_data=True,
22
+
data_format='csv',
22
23
color=(0, 0, 0),
23
24
target_name=None,
24
25
overwrite=False,
@@ -38,7 +39,8 @@ Credits: `centerface.onnx` (original) and `centerface.py` are based on https://g
38
39
-`mask_scale`*float, optional* - Scale factor for face masks, to make sure that the masks cover the complete face. Defaults to 1.0.
39
40
-`ellipse`*bool, optional* - Mask faces with blurred ellipses. Defaults to True.
40
41
-`draw_scores`*bool, optional* - Draw detection faceness scores onto outputs (a score between 0 and 1 that roughly corresponds to the detector's confidence that something is a face). Defaults to False.
41
-
-`coordinates`*bool, optional* - A list of intergers corresponding to the scaled coordinates of the face masks (x1, y1, x2, y2) for each frame. When set to True the function returns two variables: the coordinates list and the MgVideo object. Defaults to False.
42
+
-`save_data`*bool, optional* - Whether we save the scaled coordinates of the face mask (x1, y1, x2, y2) for each frame to a file. Defaults to True
43
+
-`data_format`*str, optional* - Specifies format of blur_faces-data. Accepted values are 'csv', 'tsv' and 'txt'. For multiple output formats, use list, eg. ['csv', 'txt']. Defaults to 'csv'.
42
44
-`color`*tuple, optional* - Customized color of the rectangle boxes. Defaults to black (0, 0, 0).
43
45
-`target_name`*str, optional* - Target output name for the directogram. Defaults to None (which assumes that the input filename with the suffix "_blurred" should be used).
44
46
-`overwrite`*bool, optional* - Whether to allow overwriting existing files or to automatically increment target filenames to avoid overwriting. Defaults to False.
@@ -49,7 +51,7 @@ Credits: `centerface.onnx` (original) and `centerface.py` are based on https://g
49
51
50
52
## scaling_mask
51
53
52
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_blurfaces.py#L10)
54
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_blurfaces.py#L11)
0 commit comments