EngAbod commited on
Commit
87e44a4
·
1 Parent(s): 8b5a765

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -34,8 +34,16 @@ class VideoProcessor:
34
 
35
  def recv(self, frame):
36
  frm = frame.to_ndarray(format="bgr24")
 
 
 
 
37
  frm = cv2.flip(frm,1)
38
  modified_frm = create_blake_image(frm)
 
 
 
 
39
  return av.VideoFrame.from_ndarray(modified_frm , format='bgr24')
40
  # Inside your Streamlit app
41
 
 
34
 
35
  def recv(self, frame):
36
  frm = frame.to_ndarray(format="bgr24")
37
+ # Print the format and shape of the original image
38
+ st.write(f"Original Image Format: {frm.dtype}")
39
+ st.write(f"Original Image Shape: {frm.shape}")
40
+
41
  frm = cv2.flip(frm,1)
42
  modified_frm = create_blake_image(frm)
43
+ # Print the format and shape of the original image
44
+ st.write(f"Original Image Format: {modified_frm.dtype}")
45
+ st.write(f"Original Image Shape: {modified_frm.shape}")
46
+
47
  return av.VideoFrame.from_ndarray(modified_frm , format='bgr24')
48
  # Inside your Streamlit app
49