apirrone commited on
Commit
35d15e9
·
1 Parent(s): c039a13

don't puttext

Browse files
Files changed (1) hide show
  1. red_light_green_light/main.py +11 -11
red_light_green_light/main.py CHANGED
@@ -2,7 +2,7 @@ import threading
2
  import time
3
  from importlib.resources import files
4
 
5
- import cv2
6
  import numpy as np
7
  from reachy_mini import ReachyMiniApp
8
 
@@ -140,15 +140,15 @@ class RedLightGreenLightApp(ReachyMiniApp):
140
  for i in range(len(scores)):
141
  if scores[i] > 3.0:
142
  # If the score is high, mark the person as moving
143
- cv2.putText(
144
- frame,
145
- f"Person {i + 1} Moving",
146
- (10, 30 + i * 20),
147
- cv2.FONT_HERSHEY_SIMPLEX,
148
- 0.5,
149
- (0, 0, 255),
150
- 2,
151
- )
152
  moved[i] += 1
153
 
154
  stop = False
@@ -187,7 +187,7 @@ class RedLightGreenLightApp(ReachyMiniApp):
187
 
188
  time.sleep(0.01)
189
 
190
- cv2.destroyAllWindows()
191
 
192
  while not stop_event.is_set():
193
  sequence()
 
2
  import time
3
  from importlib.resources import files
4
 
5
+ # import cv2
6
  import numpy as np
7
  from reachy_mini import ReachyMiniApp
8
 
 
140
  for i in range(len(scores)):
141
  if scores[i] > 3.0:
142
  # If the score is high, mark the person as moving
143
+ # cv2.putText(
144
+ # frame,
145
+ # f"Person {i + 1} Moving",
146
+ # (10, 30 + i * 20),
147
+ # cv2.FONT_HERSHEY_SIMPLEX,
148
+ # 0.5,
149
+ # (0, 0, 255),
150
+ # 2,
151
+ # )
152
  moved[i] += 1
153
 
154
  stop = False
 
187
 
188
  time.sleep(0.01)
189
 
190
+ # cv2.destroyAllWindows()
191
 
192
  while not stop_event.is_set():
193
  sequence()