Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ def analyze_stream(prompt, chatbot):
|
|
190 |
global stop_capture
|
191 |
global base_start_time
|
192 |
stop_capture = False
|
193 |
-
video_start = int(time.time() - base_start_time) %
|
194 |
|
195 |
# stream = "https://streamapi2.eu.loclx.io/video_feed/101"
|
196 |
stream = VIDEO_PATH
|
@@ -198,7 +198,7 @@ def analyze_stream(prompt, chatbot):
|
|
198 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
199 |
cap.set(cv2.CAP_PROP_POS_FRAMES, video_start*fps)
|
200 |
|
201 |
-
print("Vide start", video_start, fps)
|
202 |
|
203 |
frames = []
|
204 |
start_time = time.time()
|
|
|
190 |
global stop_capture
|
191 |
global base_start_time
|
192 |
stop_capture = False
|
193 |
+
video_start = int(time.time() - base_start_time) % 1800
|
194 |
|
195 |
# stream = "https://streamapi2.eu.loclx.io/video_feed/101"
|
196 |
stream = VIDEO_PATH
|
|
|
198 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
199 |
cap.set(cv2.CAP_PROP_POS_FRAMES, video_start*fps)
|
200 |
|
201 |
+
print("Vide start", video_start, fps, base_start_time)
|
202 |
|
203 |
frames = []
|
204 |
start_time = time.time()
|