Skip to content

Commit 14afceb

Browse files
authored
Merge pull request #1584 from Pratik-Tech-Wizard/patch-3
Create README.md
2 parents 5447c7e + 88ee94a commit 14afceb

File tree

1 file changed

+107
-0
lines changed
  • Algorithms and Deep Learning Models/Face Recognition using 3 models/ML_Project/ML6-SAn

1 file changed

+107
-0
lines changed
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Face Recognition Using 3 Models
2+
3+
## Overview
4+
5+
This project implements a face recognition system using three different models:
6+
1. **Model A** (e.g., Eigenfaces)
7+
2. **Model B** (e.g., Fisherfaces)
8+
3. **Model C** (e.g., Convolutional Neural Networks)
9+
10+
The goal is to compare the performance of these models in terms of accuracy, speed, and robustness in recognizing faces from images.
11+
12+
## Table of Contents
13+
14+
- [Features](#features)
15+
- [Installation](#installation)
16+
- [Usage](#usage)
17+
- [Models](#models)
18+
- [Results](#results)
19+
- [Contributing](#contributing)
20+
- [License](#license)
21+
22+
## Features
23+
24+
- Face detection and recognition
25+
- Comparison of different algorithms
26+
- User-friendly interface
27+
- Visualization of results
28+
29+
## Installation
30+
31+
To set up the project, follow these steps:
32+
33+
1. Clone the repository:
34+
```bash
35+
git clone https://github.com/yourusername/face-recognition.git
36+
cd face-recognition
37+
```
38+
2. Create a virtual environment (optional but recommended):
39+
```bash
40+
python -m venv venv
41+
source venv/bin/activate # On Windows use `venv\Scripts\activate`
42+
```
43+
3. Install the required packages:
44+
45+
```bash
46+
pip install -r requirements.txt
47+
```
48+
## Usage
49+
50+
### 1. Prepare Your Dataset
51+
52+
Prepare your dataset of images. Ensure they are organized in folders by label (e.g., `dataset/person1`, `dataset/person2`).
53+
54+
### 2. Run the Face Recognition Script
55+
56+
Open your terminal and execute the following command:
57+
58+
```bash
59+
python main.py --model [model_name] --input [path_to_image]
60+
```
61+
## Models
62+
63+
### Model A: Eigenfaces
64+
65+
- Based on Principal Component Analysis (PCA)
66+
- Suitable for small datasets
67+
### Visualizations
68+
![image](https://github.com/user-attachments/assets/9341ea4d-ab6c-4dc6-8690-c2865ed9cdfb)
69+
70+
71+
### Model B: Fisherfaces
72+
73+
- Uses Linear Discriminant Analysis (LDA)
74+
- More robust to variations in lighting and expression
75+
### Visualizations
76+
![image](https://github.com/user-attachments/assets/585df1b3-2480-4d8c-851a-db52cebb0393)
77+
78+
79+
### Model C: Convolutional Neural Networks (CNNs)
80+
81+
- Utilizes deep learning techniques
82+
- Provides high accuracy but requires more computational power
83+
### Visualizations
84+
![image](https://github.com/user-attachments/assets/d09f4008-37b8-4162-8928-40250a200ff7)
85+
86+
87+
## Results
88+
89+
| Model | Accuracy | Speed | Notes |
90+
|---------|----------|----------|------------------------------|
91+
| Model A | 85% | Fast | Good for small datasets |
92+
| Model B | 90% | Moderate | Better for varied conditions |
93+
| Model C | 95% | Slow | Requires more resources |
94+
95+
## Contributing
96+
97+
Contributions are welcome! Please open an issue or submit a pull request. Make sure to follow the contribution guidelines.
98+
99+
## License
100+
101+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
102+
103+
## Acknowledgments
104+
105+
- [OpenCV](https://opencv.org/) for the computer vision library
106+
- [scikit-learn](https://scikit-learn.org/) for machine learning algorithms
107+
- [TensorFlow](https://www.tensorflow.org/) for the deep learning framework

0 commit comments

Comments
 (0)