Genshin-SmartFishingRod icon indicating copy to clipboard operation
Genshin-SmartFishingRod copied to clipboard

设置缩放后标记位置出现偏差

Open cibimo opened this issue 4 years ago • 1 comments

本人电脑显示设置中缩放与布局设置了150%的缩放 代码需要做出以下更改: 1.overlay.py中_update() width, height = right - left, bottom - top xxx = 1.5 win32gui.MoveWindow(self.hwnd, int(left/xxx), int(top/xxx), width, height, False)

2.detector.py中mark() xxx = 1.5 x1, y1, x2, y2 = int(x1/xxx), int(y1/xxx), int(x2/xxx), int(y2/xxx) cv2.rectangle(image, (x1, y1), (x2, y2), color, 2)

cibimo avatar Dec 05 '21 13:12 cibimo

It helps a lot!!!

RemiliaScarlet114514 avatar Aug 04 '25 12:08 RemiliaScarlet114514