简体   繁体   中英

“locateOnScreen()” is really slow

I have been using the following code from the pyautogui module:

locateOnScreen()

to locate image files. If you haven't seen the locateOnScreen() function before, this is how you use it:

location = pyautogui.locateOnScreen("Image", confidence = 0.3) # confidence is optional

The problem with using that is that it takes time to find the images. I was wondering if there is a way to make it work faster so the program can find more objects. There might not be a way, I was just wondering. Thank you!

I just needed to switch to openCV! Sorry for any issues with my dumb question!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM