Saiky2k commited on
Commit
193b519
·
verified ·
1 Parent(s): 478aaa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="Phát hiện người", use_container_width=True)
218
- depth_placeholder.image(depth_colormap, caption="Bản đồ độ sâu", use_container_width=True)
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)