brogelio commited on
Commit
1983533
·
1 Parent(s): 812ac03

Edited Interface

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -80,7 +80,7 @@ def clear(landmarks): # brute force finger orientation checking
80
  return False
81
 
82
 
83
- def show(video, dominant_hand): # main
84
  cam = cv2.VideoCapture(video) # get the video file from path
85
  width = cam.get(cv2.CAP_PROP_FRAME_WIDTH)
86
  height = cam.get(cv2.CAP_PROP_FRAME_HEIGHT)
@@ -95,8 +95,6 @@ def show(video, dominant_hand): # main
95
 
96
  page_num = 0 # iterating for saving (not a viable function for gradio)
97
 
98
- color = (0, 0, 0)
99
-
100
  global sleepy_time # get sleep time for multiple gestures
101
 
102
  while cam.isOpened():
 
80
  return False
81
 
82
 
83
+ def show(video, dominant_hand, color): # main
84
  cam = cv2.VideoCapture(video) # get the video file from path
85
  width = cam.get(cv2.CAP_PROP_FRAME_WIDTH)
86
  height = cam.get(cv2.CAP_PROP_FRAME_HEIGHT)
 
95
 
96
  page_num = 0 # iterating for saving (not a viable function for gradio)
97
 
 
 
98
  global sleepy_time # get sleep time for multiple gestures
99
 
100
  while cam.isOpened():