This repository contains a camouflage of objects, dominant colors in objects, and color patterns of a given image, using k-means clustering with Python.
Explore the project »
Report Bug
Using Python and K-Means to Find the Dominant Colors In Images »
Finding Dominant Image Colours Using Python »
Dominant Colors in an Image Using K-Means Clustering »
OpenCV and Python K-Means Color Clustering »
K-Means is a clustering algorithm used in machine learning techniques. K-Means algorithm is one of the simplest and popular unsupervised learning. Substantially, K-Means algorithm tries to group similar points in the form of clusters. In K-Means algorithm, the number of groups in problem is represented by the K value.
For using this project, you can use these steps:
-
Python Installation
-
Anaconda Installation
-
OpenCV Installation
I used the Anaconda channel to install OpenCV, but you can also use other options for OpenCV installation.
OpenCV installation using Anaconda:
conda install -c conda-forge opencv
-
Run Command
python main.py
- Original Photo
- Task 1: Detect object
- Task 2: Dominant colors
- Task 3: Color pattern
- Task 4: Camouflage (Result)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.