Open shabnambanu1983 opened 7 years ago
I would also need the RGB values of the top 5 colors
@shabnambanu1234 Go to your cluster.py file and in the method _default_settings(), set the value of "min_k" equal to the number of colors you want. Then it will return top 'min_k' colours. But if your image has fewer colours than 'min_k' in that case, you will get less number of colours. Example:
def _default_settings():
return {
'min_k': 5,
'max_k': 10,
'algorithm': 'kmeans',
}
Hi, I am trying out the command line tool. how to use the ./color-extractor CLI tool to get the top 5 colors of my image along with their frequencies. I am able to get only one. Also please provide me the json file format for --settings option. I tried to provide 'all' option to the selector but could not make it work. Also please let me know how to pass settings while using the library from python code.
Thanks, Shabnam