When using pyautogui.locateAllOnScreen()
to look for images on screen (2x2 black pixels), the function returns coordinates of every single 2x2 matching pixels on screen, completely ignoring their color.
Same thing happens with locateOnScreen()
, it returns the top-left corner of the region.
Setting grayscale or confidence to various values did not help, any advice?