Spaces:
Sleeping
Sleeping
nn
commited on
Upload app.py
Browse files
app.py
CHANGED
|
@@ -312,11 +312,11 @@ class TwoStepDetection:
|
|
| 312 |
|
| 313 |
cap.release()
|
| 314 |
|
| 315 |
-
obstruction_percentage = (obstructed_frames / total_frames) * 100
|
| 316 |
summary = f"{processing_message}\n\nObstruction Summary:\n"
|
| 317 |
summary += f"Total frames: {total_frames}\n"
|
| 318 |
summary += f"Frames with obstructions: {obstructed_frames}\n"
|
| 319 |
-
summary += f"Percentage of frames with obstructions: {obstruction_percentage:.2f}%"
|
| 320 |
|
| 321 |
return None, video_output, summary
|
| 322 |
|
|
|
|
| 312 |
|
| 313 |
cap.release()
|
| 314 |
|
| 315 |
+
#obstruction_percentage = (obstructed_frames / total_frames) * 100
|
| 316 |
summary = f"{processing_message}\n\nObstruction Summary:\n"
|
| 317 |
summary += f"Total frames: {total_frames}\n"
|
| 318 |
summary += f"Frames with obstructions: {obstructed_frames}\n"
|
| 319 |
+
#summary += f"Percentage of frames with obstructions: {obstruction_percentage:.2f}%"
|
| 320 |
|
| 321 |
return None, video_output, summary
|
| 322 |
|