Pratyush101 commited on
Commit
d431c92
·
verified ·
1 Parent(s): 5c4f4ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -77,9 +77,9 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
77
  for button in buttonList:
78
  x, y = button.pos
79
  w, h = button.size
80
- if x < x8 < x + w and y < y8 < y + h:
81
- cv2.rectangle(img, button.pos, (x + w, y + h), (0, 255, 160), -1)
82
- cv2.putText(img, button.text, (x + 20, y + 70), cv2.FONT_HERSHEY_PLAIN, 5, (255, 255, 255), 3)
83
 
84
  detections = []
85
  if result.multi_hand_landmarks:
 
77
  for button in buttonList:
78
  x, y = button.pos
79
  w, h = button.size
80
+ #if x < x8 < x + w and y < y8 < y + h:
81
+ cv2.rectangle(img, button.pos, (x + w, y + h), (0, 255, 160), -1)
82
+ cv2.putText(img, button.text, (x + 20, y + 70), cv2.FONT_HERSHEY_PLAIN, 5, (255, 255, 255), 3)
83
 
84
  detections = []
85
  if result.multi_hand_landmarks: