aashwinik commited on
Commit
c23ae71
1 Parent(s): 7ebb572

Update Face_Censoring.py

Browse files
Files changed (1) hide show
  1. Face_Censoring.py +3 -2
Face_Censoring.py CHANGED
@@ -9,7 +9,7 @@ except Exception:
9
 
10
  def censor_face(filePath):
11
 
12
- output_file = 'Output\censored_' + str(filePath.name)
13
 
14
  video=cv2.VideoCapture(filePath.name)
15
  success, frame = video.read()
@@ -17,9 +17,10 @@ def censor_face(filePath):
17
  height = frame.shape[0]
18
  width = frame.shape[1]
19
 
20
- print(height, width)
21
 
22
  gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
 
23
 
24
  output=cv2.VideoWriter(output_file, cv2.VideoWriter_fourcc(*'mp4v'), 30, (width, height))
25
 
 
9
 
10
  def censor_face(filePath):
11
 
12
+ output_file = 'Output\censored_' + str(filePath.name) + '.mp4'
13
 
14
  video=cv2.VideoCapture(filePath.name)
15
  success, frame = video.read()
 
17
  height = frame.shape[0]
18
  width = frame.shape[1]
19
 
20
+ st.write(height, width)
21
 
22
  gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
23
+ st.write("Gray: " + str(gray))
24
 
25
  output=cv2.VideoWriter(output_file, cv2.VideoWriter_fourcc(*'mp4v'), 30, (width, height))
26