I am using the extcolor library to get the colors in an image. The return is either a list of tuple or a list of lists of tuples. This is an output for 5 input images.