A beginner-friendly collection of OpenCV projects covering image processing, transformations, face detection, and face recognition.
This repository contains a collection of OpenCV-based image processing and computer vision projects built using Python.
Whether you're just getting started with OpenCV or looking to understand the fundamentals of computer vision, this project provides practical examples covering:
β¨ Image Manipulation
β¨ Drawing & Annotation
β¨ Image Transformations
β¨ Face Detection
β¨ Face Recognition
- π Read and display images
- π₯ Read video streams
- π Rescale images and frames
- βοΈ Draw shapes and text
- π¨ Work with colors and pixels
βοΈ Translation- π Rotation
- π Resizing
- βοΈ Cropping
- πͺ Flipping
- π€ Face Detection using Haar Cascades
- π§ Face Recognition using LBPH Recognizer
- ποΈ Model Training
- π― Face Prediction & Identification
opencv-image-processing/
β
βββ basics/
β βββ basic.py
β βββ draw.py
β βββ read.py
β βββ rescale.py
β βββ transformations.py
β
βββ face_recognition/
β βββ face_detect.py
β βββ face_train.py
β βββ face_recognition.py
β βββ face_trained.yml
β βββ features.npy
β βββ labels.npy
β
βββ data/
βββ media/
βββ haar_cascade.xml
βββ requirements.txt
βββ LICENSE
βββ README.md
git clone https://github.com/aimanfazal/opencv-image-processing.git
cd opencv-image-processingpip install -r requirements.txtpython basics/read.pypython basics/draw.pypython basics/rescale.pypython basics/transformations.pyDetect faces using OpenCV's Haar Cascade classifier.
python face_recognition/face_detect.pyβ
Face Localization
β
Bounding Box Detection
β
Haar Cascade Classifier
Train the face recognition model on your dataset.
python face_recognition/face_train.pyGenerated files:
face_trained.yml
features.npy
labels.npy
Recognize faces using the trained model.
python face_recognition/face_recognition.pyDataset
β
Face Detection
β
Feature Extraction
β
Model Training
β
Face Recognition
By exploring this project, you'll gain hands-on experience with:
- πΈ Image Processing Fundamentals
- π¨ Image Manipulation Techniques
- π Face Detection Algorithms
- π€ Face Recognition Workflows
- π§ OpenCV Machine Learning APIs
- π Computer Vision Concepts
- π₯ Real-Time Webcam Face Recognition
- π Object Detection
- ποΈ Image Filters & Effects
- π₯ Edge Detection
- π§ Deep Learning Face Recognition
- π₯οΈ Desktop GUI Application
- π Web-Based Interface
Contributions are always welcome!
# Fork the repository
# Create a new branch
git checkout -b feature-name
# Commit your changes
git commit -m "Add feature"
# Push to GitHub
git push origin feature-nameThen create a Pull Request π
If you found this project useful:
π Star the repository
π΄ Fork the project
π’ Share it with others
This project is licensed under the MIT License.