Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|