An open API service indexing awesome lists of open source software.

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.

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].