This project uses computer vision techniques to detect and identify specific RGB colours in an image. It converts the image into black and white, where the selected colour appears white, and the rest of the image appears black.
- Detect and recognize specific RGB colors in an image.
- Convert the image to black and white, highlighting the selected color in white.
- Allow users to specify the RGB color to detect.
- Provide visual feedback by displaying the processed image with the selected color highlighted.
- Python 3.7 or above
- PIL (Python Imaging Library) module
-
Clone the project repository:
git clone https://github.com/SenChirag/Specific_RGB_color_identification.git
-
Navigate to the project directory:
cd Specific_RGB_color_identification
-
Install the required dependencies:
pip install pillow
-
Prepare the image file on which you want to perform RGB color detection.
-
Modify the configuration settings in the
config.py
file, if needed. Specify the RGB color values you want to detect. -
Run the project:
python Specific_RGB_color_identification.py
-
The program will process the image and convert it into black and white, with the selected color appearing white.
-
The processed image will be displayed, highlighting the selected color in white.
-
Close the image window to exit the program.
Contributions are welcome! If you have any ideas, improvements, or bug fixes, please submit a pull request. Make sure to follow the existing code style and provide clear documentation for your changes.
- PIL (Python Imaging Library) - Python library for image processing