Skip to content

Commit

Permalink
.。。
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Sam authored and Matt Sam committed Jul 4, 2021
1 parent c64c6f7 commit cf83905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AImbot_opencv_yolo/AI_M_BOT_X1.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def detect(self, frame):
fire_close = (1 if frame_width / boxes[max_at][2] <= 8 else 0)
if abs(y1) <= abs(y2) or fire_close:
y = y1
fire_range = boxes[max_at][2] / 9
fire_range = boxes[max_at][2] / 8
fire_pos = 1
else:
y = y2
Expand Down
2 changes: 1 addition & 1 deletion AImbot_opencv_yolo/AI_M_BOT_X2.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def detect(self, frame):
fire_close = (1 if frame_width / boxes[max_at][2] <= 8 else 0)
if abs(y1) <= abs(y2) or fire_close:
y = y1
fire_range = boxes[max_at][2] / 9
fire_range = boxes[max_at][2] / 8
fire_pos = 1
else:
y = y2
Expand Down

0 comments on commit cf83905

Please sign in to comment.