我想尝试自动化我的缩放类,但 pyautogui 图像识别无法正常工作,它显示了我图像的错误坐标,任何解决方案都会有所帮助。
from pyautogui import *
import pyautogui
import image
import time
import random
from datetime import datetime
find = pyautogui.locateCenterOnScreen("/Users/kumarsashank/Downloads/Bot/Discord.png",grayscale=True,confidence=.9)
print(find)
pyautogui.moveTo(find)
pyautogui.click()