A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.5k
stars
1.27k
forks
source link
pyautogui.locate false positive on full black img.png confidence=0.99 #827
Open
ThundySGI opened 11 months ago
pyautogui.locate gives false positive on full black image.png confidence=0.99
input:
print(pyautogui.locate( 'black.png', 'pattern.png', grayscale=False, confidence=1 ))
none - correctprint(pyautogui.locate( 'black.png', 'pattern.png', grayscale=False, confidence=0.99 ))
Box(left=0, top=0, width=17, height=22) - FALSE POSITIVEinput:
print(pyautogui.locate( 'black1white.png', 'pattern.png', grayscale=False, confidence=1 ))
none - correctprint(pyautogui.locate( 'black1white.png', 'pattern.png', grayscale=False, confidence=0.99 ))
none - correctprint(pyautogui.locate( 'black1white.png', 'pattern.png', grayscale=False, confidence=0.5 ))
none - correct