Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ CONFIDENCE_THRESHOLD = 0.5
|
|
21 |
# Distance threshold to avoid duplicate counts
|
22 |
DISTANCE_THRESHOLD = 50
|
23 |
|
24 |
-
def count_unique_trucks(video_path, time_interval
|
25 |
cap = cv2.VideoCapture(video_path)
|
26 |
if not cap.isOpened():
|
27 |
return "Error: Unable to open video file."
|
|
|
21 |
# Distance threshold to avoid duplicate counts
|
22 |
DISTANCE_THRESHOLD = 50
|
23 |
|
24 |
+
def count_unique_trucks(video_path, time_interval):
|
25 |
cap = cv2.VideoCapture(video_path)
|
26 |
if not cap.isOpened():
|
27 |
return "Error: Unable to open video file."
|