Browse Source

ploxaya idea

jezv 11 months ago
parent
commit
1ab2b19d27
1 changed files with 3 additions and 4 deletions
  1. 3 4
      trex/main.py

+ 3 - 4
trex/main.py

@@ -9,7 +9,7 @@ import cv2
 
 cv2.namedWindow('View', cv2.WINDOW_NORMAL)
 DEFAULT_MONITOR = 3
-DEBUG = True
+DEBUG = False
 scheduler = sched.scheduler(time, sleep)
 dilation_kernel = np.array([[0,0,0], [1, 1, 1], [0,0,0]]).astype('uint8')
 
@@ -125,11 +125,10 @@ if __name__ == '__main__':
     dino_max_y = dino_pos[0].min()
 
     coef = 1
-    trigger_second = (int(dino_pos[0].mean()), int(dino_max_x + int(coef*10)*pw))
-    trigger_feather = (dino_max_y, int(dino_max_x + int(coef*12)*pw))
+    trigger_second = (int(dino_pos[0].mean()), int(dino_max_x + int(coef*7)*pw))
+    trigger_feather = (dino_max_y, int(dino_max_x + int(coef*10)*pw))
     jumping = False
     taking = False
-    laing = False
 
     print(ph, pw)