Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/The-WhiteRabbit/dnfm_server
/ functions
Functions
65 in github.com/The-WhiteRabbit/dnfm_server
⨍
Functions
65
◇
Types & classes
6
↓ 24 callers
Method
move
(self, angle: int)
game_control.py:27
↓ 20 callers
Method
skill
(self,name,t=0)
hero/naima.py:87
↓ 12 callers
Method
touch_up
(self, x: int or float, y: int or float,id:int = -1)
scrcpy_adb.py:21
↓ 11 callers
Function
calculate_center
(box)
game_action.py:9
↓ 9 callers
Method
attack
(self,flag : bool=True)
game_control.py:45
↓ 8 callers
Method
_ramdon_xy
(self, x, y)
game_control.py:127
↓ 8 callers
Function
calculate_center
(box)
hero/naima.py:3
↓ 8 callers
Method
touch_down
(self, x: int or float, y: int or float,id:int = -1)
scrcpy_adb.py:17
↓ 6 callers
Function
calculate_distance
(center1, center2)
game_action.py:11
↓ 4 callers
Function
calculate_point_to_box_angle
(point, box)
game_action.py:84
↓ 4 callers
Function
find_close_point_to_box
(boxes, point)
game_action.py:73
↓ 4 callers
Method
reset
(self)
game_action.py:177
↓ 3 callers
Method
put
(self, item, block=True, timeout=None)
main.py:12
↓ 3 callers
Method
touch_move
(self, x: int or float, y: int or float,id:int = -1)
scrcpy_adb.py:19
↓ 2 callers
Function
box_iou
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format. Arguments:
utils/yolov5_onnx.py:36
↓ 2 callers
Function
calculate_angle_to_box
(point1,point2)
game_action.py:112
↓ 2 callers
Function
calculate_distance
(center1, center2)
hero/naima.py:5
↓ 2 callers
Method
click
(self, x, y, t=0.1)
game_control.py:118
↓ 2 callers
Method
from_numpy
Converts a NumPy array to a torch tensor, maintaining device compatibility.
utils/yolov5_onnx.py:322
↓ 2 callers
Function
normalize_angle
(angle)
game_action.py:131
↓ 2 callers
Function
normalize_angle
(angle)
hero/naima.py:67
↓ 2 callers
Function
xywh2xyxy
Convert nx4 boxes from [x, y, w, h] to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-right.
utils/yolov5_onnx.py:56
↓ 1 callers
Function
NonMaximumSuppression
Non-Maximum Suppression (NMS) on inference results to reject overlapping detections. Returns: list of detections, on (n,6) tensor p
utils/yolov5_onnx.py:70
↓ 1 callers
Method
Roulette
(self, name:str)
game_control.py:76
↓ 1 callers
Function
are_angles_on_same_side_of_y
(angle1, angle2)
hero/naima.py:72
↓ 1 callers
Method
calc_mov_point
(self, angle: int)
game_control.py:16
↓ 1 callers
Function
calculate_gate_angle
(point, gate)
game_action.py:102
↓ 1 callers
Method
calculate_hero_pos
(self,hero_track,boxs)
game_action.py:284
↓ 1 callers
Function
calculate_point_to_box_angle
(point, box)
hero/naima.py:29
↓ 1 callers
Function
draw_buttons
(panel)
main.py:49
↓ 1 callers
Function
find_close_point_to_box
(boxes, point)
hero/naima.py:18
↓ 1 callers
Function
find_closest_or_second_closest_box
找到离目标框最近的框或第二近的框
game_action.py:35
↓ 1 callers
Function
find_farthest_box
(boxes, target_box)
game_action.py:24
↓ 1 callers
Function
handle_button_click
(button_index)
main.py:67
↓ 1 callers
Function
is_image_almost_black
(image, threshold=30)
game_action.py:140
↓ 1 callers
Method
reset
(self)
game_control.py:124
↓ 1 callers
Function
resize_img
( im)
utils/yolov5_onnx.py:9
↓ 1 callers
Method
touch_swipe
( self, start_x: int, start_y: int, end_x: int, end_y: int, mo
scrcpy_adb.py:23
↓ 1 callers
Function
update_display
()
main.py:75
Method
__init__
(self,image_queue,max_fps=30)
scrcpy_adb.py:7
Method
__init__
(self, adb: ScrcpyADB,config)
game_control.py:8
Method
__init__
(self, ctrl: GameControl,queue)
game_action.py:162
Method
__init__
(self, model_path,image_queue,infer_queue,show_queue)
utils/yolov5_onnx.py:287
Method
__init__
(self,ctrl)
hero/naima.py:77
Function
are_angles_on_same_side_of_y
(angle1, angle2)
game_action.py:136
Method
back_jump
(self)
game_control.py:94
Function
calculate_angle
(box1, box2)
game_action.py:93
Function
calculate_angle
(box1, box2)
hero/naima.py:38
Function
calculate_angle_to_box
(box,x, y)
hero/naima.py:47
Function
calculate_iou
(box1, box2)
game_action.py:117
Function
calculate_iou
(box1, box2)
hero/naima.py:53
Method
control
(self)
game_action.py:187
Method
control
(self,hero_pos, image, boxs, MapNumber)
hero/naima.py:90
Function
find_closest_box
(boxes, target_box)
game_action.py:13
Function
find_closest_box
(boxes, target_box)
hero/naima.py:7
Method
flash
(self, angle: float)
game_control.py:103
Function
from_numpy
Converts a NumPy array to a torch tensor, maintaining device compatibility.
utils/yolov5_onnx.py:32
Method
jump
(self)
game_control.py:85
Function
non_max_suppression
Non-Maximum Suppression (NMS) on inference results to reject overlapping detections. Returns: list of detections, on (n,6) tensor p
utils/yolov5_onnx.py:178
Method
on_frame
(self, frame: cv2.Mat)
scrcpy_adb.py:37
Function
on_mouse
(event, x, y, flags, param)
main.py:55
Method
skill
(self, name:str, t: float = 0.01)
game_control.py:64
Method
tap
(self, x: int or float, y: int or float)
scrcpy_adb.py:33
Method
thread
(self)
utils/yolov5_onnx.py:296
Function
xyxy2xywh
Convert nx4 boxes from [x, y, w, h] to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-right.
utils/yolov5_onnx.py:64