Spaces:
Sleeping
Sleeping
Update Face_Censoring.py
Browse files- Face_Censoring.py +4 -3
Face_Censoring.py
CHANGED
@@ -32,6 +32,7 @@ def censor_face(filePath):
|
|
32 |
success, frame = video.read()
|
33 |
|
34 |
output.release()
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
32 |
success, frame = video.read()
|
33 |
|
34 |
output.release()
|
35 |
+
|
36 |
+
tfile2 = tempfile.NamedTemporaryFile(delete=False)
|
37 |
+
tfile2.write(output.read())
|
38 |
+
return tfile2
|