https://github.com/miteshgupta07/face-recognition-with-real-time-database
A face recognition system that integrates with Firebase for real-time database management, enabling instant identification and verification of individuals while storing and retrieving facial data efficiently.
https://github.com/miteshgupta07/face-recognition-with-real-time-database
computer-vision firebase python real-time-database
Last synced: 3 months ago
JSON representation
A face recognition system that integrates with Firebase for real-time database management, enabling instant identification and verification of individuals while storing and retrieving facial data efficiently.
- Host: GitHub
- URL: https://github.com/miteshgupta07/face-recognition-with-real-time-database
- Owner: miteshgupta07
- License: mit
- Created: 2024-06-25T02:53:45.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T07:54:24.000Z (10 months ago)
- Last Synced: 2024-12-28T03:27:44.322Z (4 months ago)
- Topics: computer-vision, firebase, python, real-time-database
- Language: Python
- Homepage:
- Size: 2.51 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐โโ๏ธFace Recognition System with Real-Time Database
## ๐ Overview
This project is a Face Recognition System that generates face encodings for stored data and uses these encodings to recognize new faces. When a new face is recognized, the data is added to a real-time database using Firebase.
## โจ Features
- **๐ข Face Encoding Generation:** Generates unique encodings for faces stored in the database.
- **๐ต๏ธ Real-Time Face Recognition:** Recognizes new faces using the generated encodings.
- **๐ Real-Time Database Integration:** Adds recognized face data to Firebase in real-time.## ๐ ๏ธ Technologies Used
- Python
- OpenCV
- dlib
- Firebase## ๐ Installation
To get started with the project, follow these steps:
1. **Clone the Repository:**
```bash
git clone https://github.com/yourusername/face-recognition-system.git
cd face-recognition-system
```2. **Create and Activate Virtual Environment:**
```bash
python -m venv env
source env/bin/activate # On Windows, use `env\Scripts\activate`
```3. **Install Dependencies:**
```bash
pip install -r requirements.txt
```4. **Setup Firebase:**
- Create a Firebase project in the [Firebase Console](https://console.firebase.google.com/).
- Add a real-time database to your project.
- Download the `serviceAccountKey.json` file from Firebase and place it in your project directory.## ๐ Usage
1. **Generate Face Encodings:**
- Run the script to generate face encodings for stored data.
```bash
python EncodingGenerator.py
```2. **Recognize New Faces:**
- Run the script to start recognizing new faces and adding data to Firebase in real-time.
```bash
python main.py
```## โ๏ธ Configuration
Make sure to configure your Firebase settings in the `firebase_config.json` file. Here is a template:
```json
{
"apiKey": "YOUR_API_KEY",
"authDomain": "YOUR_PROJECT_ID.firebaseapp.com",
"databaseURL": "https://YOUR_PROJECT_ID.firebaseio.com",
"storageBucket": "YOUR_PROJECT_ID.appspot.com",
"serviceAccount": "serviceAccountKey.json"
}
```## ๐ค Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.## ๐License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/miteshgupta07/Face-Recognition-with-Real-Time-Database/blob/main/LICENSE) file for details.## ๐งContact
If you have any questions or feedback, feel free to reach out to me at [email protected].