to test first install dependencies requirements
pip install deepface fastapi uvicorn python-dotenv deepface Pillow opencv-python pydantic motor bson numpy tensorflow
npm i
in first terminal
node app.js
in second terminal
python app.py
it uses intensive ai models like arcface, retinaface, mtcnn, opencv so gpu usage is recommended url
http://localhost:8000
open camera.html and note the api call to /attendance thats where the captured photo is going