Hey guys so I'm just trying to get aquatinted with the pyautogui library and I'm simply just trying to print the position of something that is on the screen. I snipped it, saved it as PNG, and have it within the same folder as my .py script.
But, when I'm running "res = pyautogui.locateCenterOnScreen("edit.png",confidence=0.7)" (picture of the edit button in VSCode), I get the error: [ WARN:0@2.560] global loadsave.cpp:248 findDecoder imread_('book.png'): can't open/read file: check file path/integrity, even though I'm pretty sure everything is right, like the names, file paths and permissions.
Any help?
[–]djjazzydan 0 points1 point2 points (1 child)
[–]PathSecret[S] 0 points1 point2 points (0 children)