colors = colorgram.extract('images.jpg', 1000) we can pass upper limit of number so it will give the no. of color present example it have 100 then it will give you 100 so we can set the limit higher