Skip to content

Commit

Permalink
apex 分辨率
Browse files Browse the repository at this point in the history
  • Loading branch information
ahao committed Oct 4, 2022
1 parent 4c3274b commit 706ef6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controller/ApexRecognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def check_resolution(self):
point = self.boxs[k]
newpoint = [point[0]+monitor["left"],point[1]+monitor["top"]]
self.boxs[k] = newpoint
self.resize_rate = float(1080/height)
self.resize_rate = float(height/1080)
except FileNotFoundError as e:
raise FileNotFoundError("不支持的分辨率{}x{}".format(width,height))

Expand Down
3 changes: 3 additions & 0 deletions resource/APEX/resolution/2560_1440.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"weapon1":[2054,1276]
}

0 comments on commit 706ef6b

Please sign in to comment.