Update app.py
Browse files
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 |
-
|
82 |
-
|
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:
|