glitchassassin / lackey

Lackey - Graphical desktop automation with Python
MIT License
616 stars 76 forks source link

In terms of image recognition and matching, where is lackey better than pyautogui? #145

Closed laovvvcom closed 5 years ago

laovvvcom commented 5 years ago

I am currently using pyautogui to automate, but the effect is not very good, the picture of win7 system and the picture of win10 system, even if they are the same, the final matching result is different, does lackey improve in this respect? Thanks for contributing to automation

glitchassassin commented 5 years ago

Lackey uses fuzzy matching, so the image doesn't have to match exactly, as long as it's close. For example, you might have a picture of an icon on the desktop with a background image, and match when the icon is on a different spot on the desktop. As long as the icon has at least 70% similarity to the target image (and that similarity can be tuned), it will find the target.

Hope this helps.

laovvvcom commented 5 years ago

Lackey使用模糊匹配,因此只要图像接近,图像就不必完全匹配。例如,您可能在桌面上显示带有背景图像的图标,并在图标位于桌面上的其他位置时进行匹配。只要图标与目标图像具有至少70%的相似度(并且可以调整相似性),它就会找到目标。

希望这可以帮助。

thanks man