I'm trying to use pyautogui
to find image in my screen, with confidence
params set.
But it's asking me to install OpenCV, since I've already have opencv-python
installed.
My code is like this:
import pyautogui
location = pyautogui.locateOnScreen('123.png', confidence=1)
The full error message:
raise NotImplementedError('The confidence keyword argument is only available if OpenCV is installed.')
NotImplementedError: The confidence keyword argument is only available if OpenCV is installed.
My stack is:
- Virtual Env
- Python 3
- Mac OS