Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ def count_trucks(video_path):
|
|
45 |
cap.release()
|
46 |
|
47 |
return {
|
48 |
-
"Total Trucks in Video": int(np.max(truck_count_per_frame)) if truck_count_per_frame else 0
|
49 |
-
"Avg Trucks Per Frame": round(np.mean(truck_count_per_frame), 2) if truck_count_per_frame else 0
|
50 |
}
|
51 |
|
52 |
# Gradio UI function
|
|
|
45 |
cap.release()
|
46 |
|
47 |
return {
|
48 |
+
"Total Trucks in Video": int(np.max(truck_count_per_frame)) if truck_count_per_frame else 0 #,
|
49 |
+
#"Avg Trucks Per Frame": round(np.mean(truck_count_per_frame), 2) if truck_count_per_frame else 0
|
50 |
}
|
51 |
|
52 |
# Gradio UI function
|