https://github.com/karuhun-developer/face-recognition-api
https://github.com/karuhun-developer/face-recognition-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/karuhun-developer/face-recognition-api
- Owner: karuhun-developer
- Created: 2024-10-11T04:42:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-02T17:03:38.000Z (about 1 year ago)
- Last Synced: 2025-04-02T18:22:24.607Z (about 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation without Docker
1. Clone this Repo
`git clone https://github.com/karuhun-developer/face-recognition-api.git`
2. Cd into the face-recognition-api folder
`cd face-recognition-api`
3. Create a virtual environment
`python -m venv venv`
4. Activate virtualenv
`source venv/bin/activate`
5. Cd into the src folder
`cd src`
6. Install the required packages
`python -m pip install -r requirements.txt`
7. Start the app
```shell
python main.py
```
7b. Start the app using Uvicorn
```shell
uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8002
```
8. App run on port 8002.
## Installation with Docker
1. Clone this Repo
`git clone https://github.com/karuhun-developer/face-recognition-api.git`
2. Cd into the face-recognition-api folder
`cd face-recognition-api`
3. Use Docker-Compose to spin up containers
`docker-compose up -d --build`
4. App run on port 8002.
## If Face Recognition model error
```bash
pip install wheel setuptools pip --upgrade
pip install git+https://github.com/ageitgey/face_recognition_models --verbose
```