python detect color on screen

Solutions on MaxInterview for python detect color on screen by the best coders in the world

showing results for - "python detect color on screen"
Sofia
29 Jul 2020
1import ImageGrab
2import time
3time.clock()
4image = ImageGrab.grab()
5for y in range(0, 100, 10):
6    for x in range(0, 100, 10):
7        color = image.getpixel((x, y))
8print(time.clock())