php - create statistics on image (e.g. mostly used color...) -
Sorry if the question is a bit unclear but I'm new to GD. I'm thinking that the GD already has some built-in methods. Whether or not the GD-dependent PHP classes are present can present me with a set of data in a given image. I'm mostly interested in:
- Color (NB of used colors, mostly used colors, even if I can get the name of the main color tone, even more
- Shapes (whether image-background has been removed - close to a square of the original figures found in the image, circle, nb)
Color count:
The color of a given pixel:
For shapes, you Image Slots That will need to be done and implement some smart algorithms. I can say that this is not quite easy.