Skip to content

AliElrafih/HackWestern12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Identicare - Patient Identification System

A face recognition system for patient identification in healthcare settings, built with FastAPI backend and React frontend.

Features

  • 🖼️ Image upload and face recognition
  • 👤 Patient identification using DeepFace
  • 📋 Patient information display (allergies, conditions, patient ID)
  • 🎨 Modern, responsive UI

Project Structure

HackWestern12/
├── backend/          # FastAPI backend
│   ├── main.py      # Main API server
│   └── known_faces/ # Reference face images
└── frontend/        # React frontend

Setup

Backend

  1. Navigate to the backend directory:
cd backend
  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install fastapi uvicorn deepface opencv-python numpy tensorflow
  1. Run the backend server:
uvicorn main:app --reload --port 8000

The API will be available at http://localhost:8000

Frontend

  1. Navigate to the frontend directory:
cd frontend
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

The frontend will be available at http://localhost:5173 (or the port shown in the terminal)

Usage

  1. Start the backend server (port 8000)
  2. Start the frontend development server
  3. Open the frontend URL in your browser
  4. Upload a patient photo
  5. Click "Identify Patient" to see the results

API Endpoints

  • GET / - Health check
  • POST /identify - Upload an image and identify the patient

Technologies

  • Backend: FastAPI, DeepFace, OpenCV, NumPy
  • Frontend: React, Vite
  • AI/ML: DeepFace for face recognition

About

Hack Western 12 project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors