A simple Facial recognition Grpc Service to enroll and verify faces
|
|
4 days ago | |
|---|---|---|
| proto | 4 days ago | |
| .gitignore | 4 days ago | |
| README.md | 4 days ago | |
| face_recognition_logic.py | 4 days ago | |
| grpc_client.py | 4 days ago | |
| requirements.txt | 6 days ago | |
| sample_aladdin.jpg | 4 days ago | |
| server.py | 4 days ago |
A Python gRPC server for face recognition and employee management using DeepFace.
This service enables you to enroll faces, recognize faces, list all employees, and delete employees efficiently.
git clone cd
Windows (PowerShell or CMD): python -m venv venv
macOS / Linux: python3 -m venv venv
Windows (PowerShell): .\venv\Scripts\Activate.ps1
Windows (CMD): venv\Scripts\activate.bat
macOS / Linux: source venv/bin/activate
pip install grpcio grpcio-tools deepface pandas opencv-python
python -m grpc_tools.protoc -I./proto --python_out=./proto --grpc_python_out=./proto ./proto/face_recognition.proto
python server.py
The server will start and listen on port 50051, displaying: [INFO] gRPC Face Recognition server running on port 50051
Recognize a Face:
Send an image to the gRPC endpoint and receive the best matching employee with confidence score.
Enroll a New Employee:
Provide a name and image to add a new employee to the system.
List Employees:
Retrieve all employees and their associated face images.
Delete an Employee:
Remove an employee from the database by specifying their name.
50051. Modify server.py if a different port is required.