Skip to content

This repository contains a camouflage of objects, dominant colors in objects, and color patterns of a given image, using k-means clustering with Python.

License

Notifications You must be signed in to change notification settings

betulcalik/Camouflage-Objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Camouflage Objects

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


References

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 »

Table Of Contents

1. K-Means

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.

2. Project Settings

For using this project, you can use these steps:

  1. Python Installation

    Python 3.8.8

  2. Anaconda Installation

    Anaconda

  3. 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

  4. Run Command

    python main.py

3. Screenshots from project

  1. Original Photo

original photo

  1. Task 1: Detect object

detect object

  1. Task 2: Dominant colors

dominat colors

  1. Task 3: Color pattern

color pattern

  1. Task 4: Camouflage (Result)

camouflage

4. Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

This repository contains a camouflage of objects, dominant colors in objects, and color patterns of a given image, using k-means clustering with Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages