import pyautogui
import time
def test_time():
t1 = time.time()
for i in range(100):
img = pyautogui.screenshot()
t2 = time.time()
print(t2-t1)
test_time()
I am trying to make bot, which checks pixels and then clicks at them, but screenshots taking too much time (14.93 sec for 100 screenshots) is there any faster ways to do it?