tomerk commited on
Commit
09f0aa2
·
verified ·
1 Parent(s): 6f2e077

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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) % 180
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()