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

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.

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
```