Amazing-Python-Scripts
..
/
Dominant-Color-Extraction
readme.md
DOMINANT COLOR DETECTION FROM IMAGE
Introduction
- Finding Dominant Colour: Finding Colour with Kmeans and giving appropriate colors to the pixel/data points of the image.
- Analyse different K in K-means : Different Ks can give totally different results, and usually, there is one K which is consistent with the data points, the actual K.
- Good Segmentation(Colour Extraction) : Given an image in a generic viewpoint, we wish to produce the best possible segmentation, by this we mean that most people would choose this segmentation if asked to make one, and it would make a good precursor for object recognition.
How to use it :
- Download or clone the repository
- Install Required Libraries
pip install python-opencv
pip install sklearn
pip install pandas
pip install matplotlib
OR
pip3 install -r requirements.txt
- Run all the cells of Dominant color Extraction.ipynb
- Output :Analyse the Dominant color in Image
Input:
Output:
Check out my Github profile ARYAN GULATI