asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
9.94k stars 1.21k forks source link

Use Python-ImageSearch to speed up PyAutoGUI's locate functions. #366

Open ctdorris opened 4 years ago

ctdorris commented 4 years ago

I have been using the Python-ImageSearch project to speed up searching for images. It uses cv2 to give coordinates for images and is substantially faster than the algorithm used in PyAutoGUI's code. Maybe we could integrate this feature directly into the locate functions of PyAutoGUI.

jeremygray commented 4 years ago

the locate functions should detect and use cv2 if its installed (and on the path).