abrar-adnan commited on
Commit
35d42b9
·
1 Parent(s): 9d3aee2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def video_processing(video):
55
  gaze_percentage = on_camera / total * 100
56
  except Exception as e:
57
  print(f"An error occurred while processing the video: {e}")
58
- gaze_percentage = f'no face detected Total = {total},on_camera = {on_camera},off_camera = {off_camera}
59
  print(f'Total = {total},on_camera = {on_camera},off_camera = {off_camera}')
60
  # print(f'focus perfectage = {on_camera/total*100}')
61
  # Release the video capture object and close all windows
 
55
  gaze_percentage = on_camera / total * 100
56
  except Exception as e:
57
  print(f"An error occurred while processing the video: {e}")
58
+ gaze_percentage = f'no face detected Total = {total},on_camera = {on_camera},off_camera = {off_camera}'
59
  print(f'Total = {total},on_camera = {on_camera},off_camera = {off_camera}')
60
  # print(f'focus perfectage = {on_camera/total*100}')
61
  # Release the video capture object and close all windows