accessiplot.detection.color_detection.get_common_colors_from_image
- accessiplot.detection.color_detection.get_common_colors_from_image(file_name: str, top_count: int = 6)[source]
Given a file name of an image, return a list of most common colors used in the image, in RGB.
- Parameters:
- file_namestr
The file name (path) to an image
- top_countint
The number of top colors to be returned
- Returns:
- palette: list
A list of most commonly used colors in the image.