This project showcases various image processing techniques using the OpenCV library in Python. It includes examples of reading
and displaying images
, applying filters
, performing edge detection
, detecting faces, and extracting color channels.
- Clone the repository: git clone https://github.com/your-username/Python-Image-Processing-with-OpenCV.git
- Install the required packages:
pip install -r requirements.txt
- Navigate to the project directory:
cd Python-Image-Processing-with-OpenCV
- Run the desired script:
python app.py
- Follow the instructions provided in the script's menu to execute the desired image processing task.
image_processing.py
: Contains the functions for the various image processing tasks.app.py
: The main script that runs the image processing application.
- OpenCV documentation: https://docs.opencv.org/master/index.html
- NumPy documentation: https://numpy.org/doc/
- Matplotlib documentation: https://matplotlib.org/stable/contents.html
from image_processing import show_image, apply_filter, resize_image, detect_faces, extract_channels
img = 'im2.jpg'
# Show an image
show_image(img)
# Apply a filter to an image
apply_filter(img)
# Resize an image
resize_image(img, 500, 500)
# Detect faces in an image
detect_faces(img)
# extracts the color channels (Red, Green, Blue) from an image
extract_channels(img)
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to customize this ReadMe file as per your needs and requirements. Happy coding!