Skip to content

using OPENCV to create a color picker and using it for drawing points on screen using camera

License

Notifications You must be signed in to change notification settings

Mohshaikh23/Color_Picker_Draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COLOR TRACKING

This project is a color tracking application that uses computer vision techniques to track specific colors in real-time using a webcam.

Prerequisites Make sure you have the following dependencies installed:

Python 3
OpenCV
NumPy

Installation

Clone the repository:

git clone https://github.com/Mohshaikh23/Color_Picker_Draw.git

Navigate to the project directory:

cd color-tracking

Create and activate a virtual environment (optional but recommended):

python3 -m venv venv
source venv/bin/activate

Install the required packages:

pip install -r requirements.txt

Usage Run the script:

python color_tracking.py

The webcam feed will open, and the application will start tracking the specified colors.

Press the 'q' key to quit the application.

Configuration You can customize the color tracking settings by modifying the following variables in the color_tracking.py file:

frame_width: Desired width of the webcam frame. frame_height: Desired height of the webcam frame. cap.set(10, 150): Adjust the brightness of the webcam feed. Values range from 0 to 255. To add or modify the tracked colors, update the my_color and color_value lists in the color_tracking.py file. Each color is defined by two lists: the lower and upper HSV values.

Contributing Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. Please follow the existing coding style and commit message conventions.

License This project is licensed under the MIT License.

Feel free to customize this README file to fit the specific details and instructions of your color tracking project. Providing clear installation steps, usage instructions, and customization options will help users understand and utilize your project effectively.