A face recognition system for patient identification in healthcare settings, built with FastAPI backend and React frontend.
- 🖼️ Image upload and face recognition
- 👤 Patient identification using DeepFace
- 📋 Patient information display (allergies, conditions, patient ID)
- 🎨 Modern, responsive UI
HackWestern12/
├── backend/ # FastAPI backend
│ ├── main.py # Main API server
│ └── known_faces/ # Reference face images
└── frontend/ # React frontend
- Navigate to the backend directory:
cd backend- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install fastapi uvicorn deepface opencv-python numpy tensorflow- Run the backend server:
uvicorn main:app --reload --port 8000The API will be available at http://localhost:8000
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm run devThe frontend will be available at http://localhost:5173 (or the port shown in the terminal)
- Start the backend server (port 8000)
- Start the frontend development server
- Open the frontend URL in your browser
- Upload a patient photo
- Click "Identify Patient" to see the results
GET /- Health checkPOST /identify- Upload an image and identify the patient
- Backend: FastAPI, DeepFace, OpenCV, NumPy
- Frontend: React, Vite
- AI/ML: DeepFace for face recognition