Skip to content

Browser based app that allows patients to register from home by uploading user details and a photograph. Once patient reaches hospital, all he needs to do is scan his face. If face is recognized, an automatic token with appointment details is generated and displayed to user

Notifications You must be signed in to change notification settings

kritij19/Hospital_CheckIn

Repository files navigation

Hospital Check-In System

(Using Face Recognition)

Table of Contents

About the Project

This browser-based patient registration application allows patients to upload their details along with their scanned photo while being at their homes. On the patient's arrival at the hospital, only facial recognition is sufficient as registration information is already there in the app database. Face recognition at hospital also ensures that the patient is personally present and so token cab be issued for queuing outside the relevant room. This little solution can save substantial time at the registration desk, thereby improving the overall efficiency and reduce patient's sufferings.

There are 3 major features of the application -

  1. Patient Registration from home based on personal details, aadhar card and a scanned photo
  2. Patient check-in at the hospital using face recognition
  3. Hospital administration's option to view the registration data

Built With

Getting Started

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/kritij19/Hospital_CheckIn.git

2a. Create a Virtual Environment (Optional)

python -m venv venv

2b. Activate the virtual environment

.\venv\Scripts\activate
  1. Install the requirements and dependancies
pip install -r requirements.txt
  1. Run setup_db.sql in your MySQL Server

Usage

I) New user registration:

  1. Run the following command
python registration\registration.py -u <MySQL_database_user> -p <MySQL_database_password>
  1. View the application on
http://127.0.0.1:5000/

II) Face recognition based CheckIn:

Note: You will have to stop the execution of one application to access the other. (For windows: Ctrl + C)

  1. Run the following command
python face_recognition/face_recognition.py -u <MySQL_database_user> -p <MySQL_database_password>
  1. View the application on
http://127.0.0.1:5000/

III) Hospital Admin Side:

Note: You will have to stop the execution of one application to access the other. (For windows: Ctrl + C)

  1. Run the following command
python hospital_admin/hospital_admin.py -u <MySQL_database_user> -p <MySQL_database_password>
  1. View the application on
http://127.0.0.1:5000/

User Manual

Module - Patient Registration

  1. Fill up the form with personal details, Aadhar card and a scanned photo of the patient. After filling all details, press Submit.

Patient Registration part 1

Patient Registration part 2

  1. On Submit, the application validates if Aadhar number exists in the database, in that case, gives an error message
  2. If the Aadhar number does not exist, checks if the photo uploaded is proper, then uses Azure Face API to create a person id corresponding to the face in the image. All relevant details are then stored in the database and a success message is shown to the user

Module - Patient Checkin

  1. During hospital check-in the patient (user) has to cpature his photo using the webcam.

Photo Capture at checking

  1. Once picture is clicked, it shows on the right hand side, and then click on Submit to compare

Comparing

  1. If the photo captured at the hospital matches with the photo uploaded earlier, then a success message is shown

Successful Checkin

Module - Hospital Administration to view Patient Records

  1. The hospital administration staff has the option to view patients data. For this, they have to register themselves in the app one time.

Hospital Administrator Registration

  1. Once Registration is done, they need to login using the credentials used during registration

Hospital Administrator Login

  1. The administrator can see all patients' data in a tabular format

View Patient Records

  1. In case they want to view a particular patient's data, then they can click on the view button for that row

View Patient Details

Resources Used

About

Browser based app that allows patients to register from home by uploading user details and a photograph. Once patient reaches hospital, all he needs to do is scan his face. If face is recognized, an automatic token with appointment details is generated and displayed to user

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published