Update app.py
Browse files
app.py
CHANGED
|
@@ -85,8 +85,8 @@ def count_people(video_path):
|
|
| 85 |
return {
|
| 86 |
#'Total Frames Processed': frame_count,
|
| 87 |
#'Total People Detected': total_people_count,
|
| 88 |
-
'Average People Per Frame': round(np.mean(people_per_frame), 2),
|
| 89 |
-
'
|
| 90 |
}
|
| 91 |
|
| 92 |
# Define Gradio interface
|
|
|
|
| 85 |
return {
|
| 86 |
#'Total Frames Processed': frame_count,
|
| 87 |
#'Total People Detected': total_people_count,
|
| 88 |
+
#'Average People Per Frame': round(np.mean(people_per_frame), 2),
|
| 89 |
+
'People in a Video': int(np.max(people_per_frame)) #Max People in a Single Frame
|
| 90 |
}
|
| 91 |
|
| 92 |
# Define Gradio interface
|