An application through which you can automatically get the name of a color by double-clicking on them.
- General info
- Screenshots
- Features
- Technologies
- Setup
- Status
- Inspiration
- Contact
- License
- Contributing
Color detection is the process of identifying the name of any color. Color detection is important in identifying objects. Various image editing and drawing apps also use it as a tool.
In this project, I built an application which accepts an image path and automatically get the name of the colors in the image by double-clicking on them. The application has a data file that contains the color name and its values, it then calculate the distance from each color and find the shortest one.
Running program |
---|
Sample Output 1 |
---|
Sample Output 2 |
---|
Sample Output 3 |
---|
Sample Output 4 |
---|
- Detect colors by double-clicking on the color in an image
- Get color name
- Get RGB values of colors
To run this app, you will need to follow these 4 steps:
-
a Laptop
-
Text Editor or IDE (eg. vscode, PyCharm)
-
Git installed on your Laptop.
-
Command line (CMD)
# Clone this repository into the directory of your choice
$ git clone https://github.com/Williano/Color-Detection-Application.git
# Move into project folder
$ cd Color-Detection-Application
# Install from Pipfile
$ pipenv install
# Activate the Pipenv shell
$ pipenv shell
# Create database tables
(Color-Detection-Application-XXXX) $ python color_detector.py -i <add your image path here>
Example: python src/color_detector.py -i images/pietro-de-grandi.jpg
- Double-click on any part of the image to get the color name and RGB value
Project is: done
This project was for my multimedia class for my MSc. Computer Science degree.
Created by Williano - feel free to contact me!
You can check out the full license here
This project is licensed under the terms of the MIT license.
- Fork it (https://github.com/Williano/Color-Detection-Application.git)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request