EngAbod commited on
Commit
7c19723
·
1 Parent(s): 87e44a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -35,11 +35,12 @@ class VideoProcessor:
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}")
 
35
  def recv(self, frame):
36
  frm = frame.to_ndarray(format="bgr24")
37
  # Print the format and shape of the original image
38
+ text = str(frm.dtype)
39
+ cv2.putText(frm, text, (20, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 255, 0))
 
40
  frm = cv2.flip(frm,1)
41
  modified_frm = create_blake_image(frm)
42
+ text2 = str(frm.shape)
43
+ cv2.putText(modified_frm, text2, (30, 70), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 255, 0))
44
  # Print the format and shape of the original image
45
  st.write(f"Original Image Format: {modified_frm.dtype}")
46
  st.write(f"Original Image Shape: {modified_frm.shape}")