Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -214,8 +214,8 @@ def process_video(video_path):
|
|
| 214 |
|
| 215 |
# Hiển thị khung hình trong Streamlit (cập nhật mỗi 5 khung hình để tránh làm chậm)
|
| 216 |
if frame_counter % 5 == 0:
|
| 217 |
-
detection_placeholder.image(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB), caption="
|
| 218 |
-
depth_placeholder.image(depth_colormap, caption="
|
| 219 |
|
| 220 |
# Ghi khung hình vào video đầu ra
|
| 221 |
out_detection.write(frame)
|
|
|
|
| 214 |
|
| 215 |
# Hiển thị khung hình trong Streamlit (cập nhật mỗi 5 khung hình để tránh làm chậm)
|
| 216 |
if frame_counter % 5 == 0:
|
| 217 |
+
detection_placeholder.image(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB), caption="Detect people", use_container_width=True)
|
| 218 |
+
depth_placeholder.image(depth_colormap, caption="depth: ", use_container_width=True)
|
| 219 |
|
| 220 |
# Ghi khung hình vào video đầu ra
|
| 221 |
out_detection.write(frame)
|