Pratyush101 commited on
Commit
9e0e485
·
verified ·
1 Parent(s): 95127e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
116
  cv2.putText(img, button.text, (x + int(0.2 * bw), y + int(0.7 * bh)), cv2.FONT_HERSHEY_PLAIN, font_scale, (255, 255, 255), font_thickness)
117
 
118
  # # Handle button press
119
- if (distance / np.sqrt(bbox[2] ** 2 + bbox[3] ** 2)) * 100 < 0.2*h:
120
 
121
  if time.time() - prev_key_time[0] > 2:
122
  prev_key_time[0] = time.time()
 
116
  cv2.putText(img, button.text, (x + int(0.2 * bw), y + int(0.7 * bh)), cv2.FONT_HERSHEY_PLAIN, font_scale, (255, 255, 255), font_thickness)
117
 
118
  # # Handle button press
119
+ if (distance / np.sqrt(bbox[2] ** 2 + bbox[3] ** 2)) * 100:
120
 
121
  if time.time() - prev_key_time[0] > 2:
122
  prev_key_time[0] = time.time()