fastest way to find the rgb pixel color count of image

You need to use Numpy, or OpenCV, for fast image processing in Python. I made a 9-colour version of Paddington: from PIL import Image import numpy as np # Open Paddington and make sure he is RGB – not palette im = Image.open(‘paddington.png’).convert(‘RGB’) # Make into Numpy array na = np.array(im) # Arrange all pixels … Read more