Colors in pictures

2

I own an image and would like to take the predominant color of this image.

For example:

I have this image: link

The predominant color is green, I would like to know how to identify this color, in different images, regardless of the color that is predominant.

    
asked by anonymous 05.02.2015 / 12:53

1 answer

0

This library can help: link

With it you can extract information from the image, such as the background color.

Example usage:

UIImage *image = [UIImage imageNamed:@"test.jpg"];
SLColorArt *colorArt = [image colorArt];
primaryColorView.backgroundColor = colorArt.primaryColor;
backgroundColorView.backgroundColor = colorArt.backgroundColor;
    
05.02.2015 / 13:43