Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ def process_video(confidence_threshold=0.5, selected_classes=None, stream_url=No
|
|
194 |
errors.append("Error: Could not open stream.")
|
195 |
return None, "\n".join(errors)
|
196 |
|
197 |
-
model = YOLO(model="
|
198 |
crossed_objects = {}
|
199 |
max_tracked_objects = 1000 # Maximum number of objects to track before clearing
|
200 |
|
@@ -278,7 +278,7 @@ with gr.Blocks() as demo:
|
|
278 |
|
279 |
# Step 1: Enter the IP Camera Stream URL
|
280 |
# ip="https://view.h264.cam/ref/kta/live.primary.m3u8"
|
281 |
-
ip="https://
|
282 |
stream_url = gr.Textbox(label="Enter IP Camera Stream URL", value=ip, visible=False)
|
283 |
|
284 |
|
|
|
194 |
errors.append("Error: Could not open stream.")
|
195 |
return None, "\n".join(errors)
|
196 |
|
197 |
+
model = YOLO(model="yolo12n.pt")
|
198 |
crossed_objects = {}
|
199 |
max_tracked_objects = 1000 # Maximum number of objects to track before clearing
|
200 |
|
|
|
278 |
|
279 |
# Step 1: Enter the IP Camera Stream URL
|
280 |
# ip="https://view.h264.cam/ref/kta/live.primary.m3u8"
|
281 |
+
ip="https://cdn3.wowza.com/5/Z2JuSTJHS2JOQVhK/Sanibel/Sanibel_Toll_Plaza.stream/chunklist.m3u8"
|
282 |
stream_url = gr.Textbox(label="Enter IP Camera Stream URL", value=ip, visible=False)
|
283 |
|
284 |
|