Video Link=> https://drive.google.com/file/d/1D65ypbX8alYWWjPwiui66_wiyAkP25vA/view?usp=sharing
This project is a simple color detection and tracking application using Python and OpenCV. It allows you to interactively specify a color range and track objects of that color in real-time video from your webcam.
- Real-time color detection and tracking.
- Interactive adjustment of color range using trackbars.
- Webcam integration for live video input.
- Easy-to-use graphical user interface.
Before running the Color Detection From Webcam project, ensure you have the following installed:
- Python 3.x
- OpenCV (cv2)
You can install OpenCV using pip:
pip install opencv-python
-
Clone this repository to your local machine:
git clone https://github.com/Ahmad10Raza/Color_Detection_From_Webcam.git
-
Navigate to the project directory:
cd Color_Detection_From_Webcam
-
Run the Color Detection application:
python Color_Detection_With_Contours.py
-
Adjust the color range using the trackbars to detect and track objects of the specified color.
-
Press the 'Esc' key to exit the application.
- Launch the application and make sure your webcam is active.
- Use the trackbars to adjust the lower and upper HSV values to specify the color range you want to detect.
- The program will display the original video feed along with a mask showing the detected color range and the resulting color-tracked video.
Contributions are welcome! If you'd like to contribute to this project, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the OpenCV community for the powerful computer vision library.
- Inspired by the need for simple color detection and tracking tools.
Happy color detection! ๐