Pratyush101 commited on
Commit
bd1b989
·
verified ·
1 Parent(s): b19a041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
118
  # output_text += button.text # Append key to output text
119
  # # # Handle button press
120
  # if (distance / np.sqrt(bbox[2] ** 2 + bbox[3] ** 2)) * 100<click_threshold:
121
- cv2.putText(img, (distance / np.sqrt(bbox[2] ** 2 + bbox[3] ** 2)), (int(0.05 * w) , int(0.95 * h)), cv2.FONT_HERSHEY_PLAIN, 5, (255, 255, 255), 5)
122
  # if time.time() - prev_key_time[0] > 2:
123
  # prev_key_time[0] = time.time()
124
  # if button.text != 'BS' and button.text != 'SPACE':
 
118
  # output_text += button.text # Append key to output text
119
  # # # Handle button press
120
  # if (distance / np.sqrt(bbox[2] ** 2 + bbox[3] ** 2)) * 100<click_threshold:
121
+ cv2.putText(img, (distance), (int(0.05 * w) , int(0.95 * h)), cv2.FONT_HERSHEY_PLAIN, 5, (255, 255, 255), 5)
122
  # if time.time() - prev_key_time[0] > 2:
123
  # prev_key_time[0] = time.time()
124
  # if button.text != 'BS' and button.text != 'SPACE':