This is better than using getpixel
all the time and works faster.
import ImageGrab
px = ImageGrab.grab().load()
for y in range(0, 100, 10):
for x in range(0, 100, 10):
color = px[x, y]
Reference: Image.load
More Related Contents:
- How do I run a Python program in the Command Prompt in Windows 7?
- OpenCV giving wrong color to colored images on loading
- How to read the RGB value of a given pixel in Python?
- how to clear the screen in python [duplicate]
- matplotlib colorbar for scatter
- Python OpenCV Color Tracking
- Get pixel’s RGB using PIL
- How can I color Python logging output?
- Change the colors within certain range to another color using OpenCV
- Range values to pseudocolor
- Getting individual colors from a color map in matplotlib
- How to make a tkinter Label background transparent?
- Cannot redirect output when I run Python script on Windows using just script’s name
- Making Tkinter windows show up in the taskbar
- Python: PIL replace a single RGBA color
- How to change the color of the axis, ticks and labels for a plot in matplotlib
- Clear screen in shell
- Converting Hex to RGB value in Python
- Python Matplotlib Boxplot Color
- How to draw a pixel on the screen directly?
- Why won’t this ctypes code work with Python 3.3 but will work with Python 2.7?
- Python – Find dominant/most common color in an image
- Why isn’t .ico file defined when setting window’s icon?
- HSV to RGB Color Conversion
- How to find the RED color regions using OpenCV? [duplicate]
- How to display text on the screen without a window using Python
- Change specific RGB color pixels to another color, in image file
- Installing mod_wsgi on WAMP server running on Windows 7
- Add “django-admin.py” path to command line on Windows 7
- How to change the foreground or background colour of a selected cell in tkinter treeview?