Skip to content

This Project leverages computer vision and the OpenCV library to facilitate interactive color detection in digital images. Users can double-click on an image, and the script extracts the selected color's RGB values and provides the corresponding color name from a predefined color database.

License

Notifications You must be signed in to change notification settings

sabariraj01/Color-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Detection Project

This Python project focuses on color detection in images using computer vision and the OpenCV library. The script allows users to interactively double-click on an image to select a specific color, and the corresponding color name along with RGB values is displayed on the image. The project incorporates a color database stored in a CSV file to associate RGB values with meaningful color names.

Dependencies

OpenCV: Used for image processing and user interface interactions.
Pandas: Utilized for managing and querying the color database.

Usage

->Install the required dependencies:
pip install opencv-python pandas
->Run the color detection script:
python color_detection.py

Double-click on the image to interactively detect and display color information.

Color Database

The color database is stored in a CSV file (colors.csv) with columns: "Color", "Color_name", "Hex", "R", "G", "B".

Sample Outputs

image image

Contributions

Contributions to the project are welcome. Feel free to open issues, suggest improvements, or submit pull requests.

License

MIT License

About

This Project leverages computer vision and the OpenCV library to facilitate interactive color detection in digital images. Users can double-click on an image, and the script extracts the selected color's RGB values and provides the corresponding color name from a predefined color database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published