Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 OpenCV Image Processing

πŸš€ Learn Computer Vision & Image Processing with OpenCV and Python

A beginner-friendly collection of OpenCV projects covering image processing, transformations, face detection, and face recognition.

Stars Forks Issues License


πŸ“– Overview

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


🌟 Features

πŸ–ΌοΈ Basic Image Processing

  • πŸ“‚ Read and display images
  • πŸŽ₯ Read video streams
  • πŸ” Rescale images and frames
  • ✏️ Draw shapes and text
  • 🎨 Work with colors and pixels

πŸ”„ Image Transformations

  • ↔️ Translation
  • πŸ”ƒ Rotation
  • πŸ“ Resizing
  • βœ‚οΈ Cropping
  • πŸͺž Flipping

πŸ€– Face Detection & Recognition

  • πŸ‘€ Face Detection using Haar Cascades
  • 🧠 Face Recognition using LBPH Recognizer
  • πŸ‹οΈ Model Training
  • 🎯 Face Prediction & Identification

πŸ“‚ Project Structure

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

πŸ› οΈ Installation

1️⃣ Clone the Repository

git clone https://github.com/aimanfazal/opencv-image-processing.git
cd opencv-image-processing

2️⃣ Install Dependencies

pip install -r requirements.txt

πŸš€ Getting Started

πŸ“· Reading Images

python basics/read.py

🎨 Drawing Shapes & Text

python basics/draw.py

πŸ“ Rescaling Images

python basics/rescale.py

πŸ”„ Applying Transformations

python basics/transformations.py

πŸ‘€ Face Detection

Detect faces using OpenCV's Haar Cascade classifier.

python face_recognition/face_detect.py

Features

βœ… Face Localization
βœ… Bounding Box Detection
βœ… Haar Cascade Classifier


πŸ‹οΈ Train Face Recognition Model

Train the face recognition model on your dataset.

python face_recognition/face_train.py

Generated files:

face_trained.yml
features.npy
labels.npy

🎯 Run Face Recognition

Recognize faces using the trained model.

python face_recognition/face_recognition.py

Recognition Pipeline

Dataset
   ↓
Face Detection
   ↓
Feature Extraction
   ↓
Model Training
   ↓
Face Recognition

πŸ’» Technologies Used


πŸŽ“ What You'll Learn

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

πŸ“Œ Future Enhancements

  • πŸŽ₯ Real-Time Webcam Face Recognition
  • πŸš— Object Detection
  • πŸ–ŒοΈ Image Filters & Effects
  • πŸ”₯ Edge Detection
  • 🧠 Deep Learning Face Recognition
  • πŸ–₯️ Desktop GUI Application
  • 🌐 Web-Based Interface

🀝 Contributing

Contributions are always welcome!

Steps

# 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-name

Then create a Pull Request πŸš€


⭐ Support

If you found this project useful:

🌟 Star the repository
🍴 Fork the project
πŸ“’ Share it with others


πŸ“œ License

This project is licensed under the MIT License.


πŸ‘¨β€πŸ’» Author

Aiman Fazal

❀️ Built with Python & OpenCV

⭐ Don't forget to star the repository if you found it helpful!

About

Computer vision and image processing projects built with OpenCV and Python, featuring image transformations, face detection, and face recognition.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages