nn commited on
Commit
1b99f4c
·
verified ·
1 Parent(s): bba1d3f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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