https://github.com/ispaneli/facial_recognition_system
A service that implements face authentication for company employees.
https://github.com/ispaneli/facial_recognition_system
async asyncio backend client-server computer-vision cv cv2 face face-recognition facial-recognition fastapi jwt-auth microservice opencv python python-types python3 security swagger-ui uvicorn
Last synced: 16 days ago
JSON representation
A service that implements face authentication for company employees.
- Host: GitHub
- URL: https://github.com/ispaneli/facial_recognition_system
- Owner: ispaneli
- License: mit
- Created: 2022-12-24T17:49:18.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-21T17:01:40.000Z (over 2 years ago)
- Last Synced: 2025-07-30T01:11:14.466Z (3 months ago)
- Topics: async, asyncio, backend, client-server, computer-vision, cv, cv2, face, face-recognition, facial-recognition, fastapi, jwt-auth, microservice, opencv, python, python-types, python3, security, swagger-ui, uvicorn
- Language: Python
- Homepage:
- Size: 39 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Facial recognition system backend (FastAPI&OpenCV)
## ▶️ Quick Start
1. Go to project directory and configure environment variables:
```shell
export FRS_MONGODB_URL=""
export FRS_GLOBAL_SALT=""
export FRS_JWT_SECRET_KEY=""
export PYTHONPATH="${PYTHONPATH}:${PWD}"
```2. Create and activate Python environment:
```shell
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements-base.txt
```3. Start application:
```shell
python3 src/facial_recognition_system/main.py
```## 🍎 Errors on Apple silicon (M1, M2, etc.)
1. Install official PNG reference library.
```shell
brew install libpng
export C_INCLUDE_PATH=/opt/homebrew/Cellar/libpng//include
export LIBRARY_PATH=/opt/homebrew/Cellar/libpng//lib
```2. Reinstall all packages using **PIP** with flags *--force-reinstall* and *--no-cache-dir*. For example:
```shell
pip install --upgrade wheel
pip install cmake --force-reinstall --no-cache-dir
pip install dlib --force-reinstall --no-cache-dir
pip install opencv-python --force-reinstall --no-cache-dir
pip install face-recognition --force-reinstall --no-cache-dir
```## 👁️ OpenCV highlighting problem in PyCharm Professional
* PyCharm;
* Settings...;
* Project: ;
* Python Interpreter;
* Show all... in list of interpreters;
* select your interpreter;
* press "Show Interpreter Paths";
* add OpenCV-path.**OpenCV path example:**
```
/Users/admin/PycharmProjects/facial_recognition_system/venv/lib/python3.10/site-packages/cv2
```