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