Sanshruth commited on
Commit
412821b
·
verified ·
1 Parent(s): cca3524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -15,7 +15,10 @@ model.multi_label = False
15
  model.max_det = 100 # max number of detections
16
 
17
  # Low-resolution for inference
18
- LOW_RES = (320, 180)
 
 
 
19
 
20
  def detect_and_draw(frame):
21
  # Create low-res copy
@@ -39,7 +42,9 @@ def detect_and_draw(frame):
39
  return frame
40
 
41
  # Define your stream URL
42
- stream_url = "https://edge01.london.nginx.hdontap.com/hosb1/julian-coc.stream/chunklist_w1106429103.m3u8"
 
 
43
  #stream_url = "https://edge01.london.nginx.hdontap.com/hosb5/ng_showcase-coke_bottle-street_fixed.stream/chunklist_w464099566.m3u8"
44
 
45
  def process_stream():
 
15
  model.max_det = 100 # max number of detections
16
 
17
  # Low-resolution for inference
18
+ LOW_RES = (500, 600)
19
+
20
+ #Faster inference but less accurate
21
+ #LOW_RES = (320, 180)
22
 
23
  def detect_and_draw(frame):
24
  # Create low-res copy
 
42
  return frame
43
 
44
  # Define your stream URL
45
+ stream_url = "https://view.h264.cam/ref/kta/live.primary.m3u8"
46
+
47
+ #stream_url = "https://edge01.london.nginx.hdontap.com/hosb1/julian-coc.stream/chunklist_w1106429103.m3u8"
48
  #stream_url = "https://edge01.london.nginx.hdontap.com/hosb5/ng_showcase-coke_bottle-street_fixed.stream/chunklist_w464099566.m3u8"
49
 
50
  def process_stream():