Dual Authentication: Using face-recognition and iris-recognition for more accurate authentication based on FastAPI system.
We using FaceNet model in Deepface for face recognition and daugman algorithm for iris recognition.
- fastapi
- uvicorn
- sqlalchemy
- passlib
- python-multipart
- python-opencv
- deepface
- sklearn
First clone this project and go to dual-authentication folder
git clone [email protected]:mertz1999/Dual-Authentication.git
cd Dual-Authentication
Then install requirements packages in requirements.txt file:
pip install -r requirements.txt
for running server you need to start uvicorn:
uvicorn main:app --reload
After this you will be see something like this:
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [9616] using StatReload
INFO: Started server process [11052]
INFO: Waiting for application startup.
INFO: Application startup complete.
you got host ip and port to use it. you can use your browser or curl command in shell for use this api.
Adding new user is available on http://127.0.0.1:8000/add and verifying a user is on http://127.0.0.1:8000/verify