Edit to include code snippet.
I am developing an app with pyautogui. I want to match a region on the desktop and click it. Calling the locateOnscreen function, I pass the filename containing the image to match, along with a confidence parameter, which throws an error.
import pyautogui as pag
button_login = pag.locateOnScreen("button_login.png", confidence=0.7)
File ".\test.py", line 23, in <module>
button_login = pag.locateOnScreen("button_login.png", confidence=0.7)
...
TypeError: _locateAll_python() got an unexpected keyword argument 'confidence'
Installed version is 0.9.47. The docs refer to version 1.0.0. I can't find this version anywhere including pypi and github.