I added a new feature to the ColorScheme processing library I made.
Now you can pass image files to the constructor like:
ColorScheme colorScheme = new ColorScheme("image.jpg", this);
It will generate a color scheme based on the most common colors in the imageSource code
(with a bit of randomness in there to give you some accents).
Source : Spotify