Skip to content

muhammadhassan24560/opencv-rgb-channel-visualization-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webcam RGB Channel Visualization using OpenCV in Python

This Python-based computer vision project demonstrates basic image acquisition and RGB channel manipulation using OpenCV and Matplotlib. An image is captured from a webcam, converted from BGR to RGB color space, and individual RGB channels are visualized using NumPy slicing.

Features

  • Webcam image capture
  • BGR to RGB color space conversion
  • Red, Green, and Blue channel isolation
  • Multi-plot visualization using Matplotlib

Technologies Used

  • Python
  • OpenCV
  • NumPy
  • Matplotlib

Project Structure

├── src/                          # Source code
│   └── webcam_rgb_channels.py    # Main script
├── README.md                     # Project documentation
├── requirements.txt              # Python dependencies
├── .gitignore                    # Git ignore rules
└── LICENSE                       # MIT License

How to Run

  1. Clone the repository:
    git clone https://github.com/muhammadhassan24560/opencv-webcam-rgb-channel-visualization.git
    
  2. Navigate to the project directory:

cd opencv-webcam-rgb-channel-visualization

  1. Install dependencies:

pip install -r requirements.txt

  1. Run the script:

python src/webcam_rgb_channels.py

Notes

  • The script captures a single frame from the webcam.
  • RGB channel slicing is performed using NumPy indexing.
  • Matplotlib is used for visualization instead of OpenCV windows.

Future Improvements

  • Real-time video processing
  • Image filtering (blur, edge detection)

About

Python OpenCV project to visualize RGB channels from webcam images using Matplotlib. Computer vision demo for color processing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages