abrar-adnan commited on
Commit
483d410
1 Parent(s): 78eae32

print video

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -8,6 +8,7 @@ import time
8
  model = load_learner("gaze-recognizer-v1.pkl")
9
 
10
  def video_processing(video):
 
11
  start_time = time.time()
12
  # Loop through the frames of the video
13
  video_capture = cv2.VideoCapture(video)
@@ -48,12 +49,7 @@ def video_processing(video):
48
  if(result[0] == 'on_camera'): on_camera = on_camera + 1
49
  elif(result[0] == 'off_camera'): off_camera = off_camera + 1
50
  total = total + 1
51
-
52
- # cv2.imshow('Video', frame)
53
 
54
- # If the user presses the 'q' key, exit the loop
55
- # if cv2.waitKey(1) & 0xFF == ord('q'):
56
- # break
57
  gaze_percentage = on_camera/total*100
58
  # print(total,on_camera,off_camera)
59
  # print(f'focus perfectage = {on_camera/total*100}')
 
8
  model = load_learner("gaze-recognizer-v1.pkl")
9
 
10
  def video_processing(video):
11
+ print(video)
12
  start_time = time.time()
13
  # Loop through the frames of the video
14
  video_capture = cv2.VideoCapture(video)
 
49
  if(result[0] == 'on_camera'): on_camera = on_camera + 1
50
  elif(result[0] == 'off_camera'): off_camera = off_camera + 1
51
  total = total + 1
 
 
52
 
 
 
 
53
  gaze_percentage = on_camera/total*100
54
  # print(total,on_camera,off_camera)
55
  # print(f'focus perfectage = {on_camera/total*100}')