Spaces:
Build error
Build error
Create streamlit_ui.py
Browse files- modules/streamlit_ui.py +10 -0
modules/streamlit_ui.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import cv2
|
| 3 |
+
|
| 4 |
+
def display_video_feed():
|
| 5 |
+
cap = cv2.VideoCapture("thermal_video_feed.mp4") # Replace with live feed
|
| 6 |
+
ret, frame = cap.read()
|
| 7 |
+
if ret:
|
| 8 |
+
st.image(frame, channels="BGR", caption="Live Feed", use_column_width=True)
|
| 9 |
+
cap.release()
|
| 10 |
+
return frame
|