This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Neda Jabbari | |
### Jan 8, 2020 | |
### The get_dominant_color function detects dominant color from an image using a dictionary of basic colors, | |
### k-means clustering and eucledian distance. | |
def get_dominant_color(image, k, image_processing_size): | |
""" | |
Read and prepare image in RGB color space. | |
Perform kmeans clustering to get color clusters. |