Sep 29, 2020 01:42 PM
(This post was last modified: Sep 29, 2020 02:38 PM by Crypt.)
Trying to figure out why I'm getting this error "TypeError: _locateAll_python() got an unexpected keyword argument 'confidence'"
For some reason it's not liking the confidence part?
Update: I figured out both errors. I needed OpenCV as well.
Closing thread.
Code
def main():
while pyautogui.locateOnScreen('spikes.png', confidence=0.8) is not None:
print("I see it")
pyautogui.moveTo(1843, 82)
pyautogui.click(1843, 82)
#move to stair recognition
stairs()
else:
print(" I don't see it")For some reason it's not liking the confidence part?
Update: I figured out both errors. I needed OpenCV as well.
Closing thread.


