A python application through which you can automatically get the name and R,G,B values of a color in an image by clicking on the color with your mouse.
- General info
- Remote Color Database
- 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, we built an application which accepts an image path and automatically get the name and R, G, B values of the colors in the image when the user presses left or right mouse buttons on the image. The application has a remote database that allows users to update the colors dataset with custom colors. The application gets the updated color dataset from the remote database which contains the color names and its values, it then calculates the distance from each color and finds the closest one.
-
A user can see the list of the colors in the database.
-
A user can add a new color to the database.
-
A user can delete a color from the database.
-
The user can visit the link below to view, add and delete colors:
Running program |
---|
Sample Output 1 |
---|
Sample Output 2 |
---|
Sample Output 3 |
---|
Sample Output 4 |
---|
- A remote database to allow users to add custom colors, delete, view and download colors.
- Detect colors by clicking on the color in an image with your mouse
- Get color name
- Get RGB values of colors
To run this app, you will need to follow these 4 steps:
-
a Computer
-
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
# Run application
(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
- 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