diff --git a/controller/ApexRecognizer.py b/controller/ApexRecognizer.py index 237cd29..89b49c7 100644 --- a/controller/ApexRecognizer.py +++ b/controller/ApexRecognizer.py @@ -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)) diff --git a/resource/APEX/resolution/2560_1440.json b/resource/APEX/resolution/2560_1440.json new file mode 100644 index 0000000..ad3b9f3 --- /dev/null +++ b/resource/APEX/resolution/2560_1440.json @@ -0,0 +1,3 @@ +{ + "weapon1":[2054,1276] +} \ No newline at end of file