Skip to content

A countless number of people drive on the highway day and night. People traveling long-distance suffer from lack of sleep. Due to which it becomes very dangerous to drive when feeling sleepy or angry or sad. So, to prevent these accidents I have build an web application using Python, Django which will alert the driver when he feels angry or sad…

Notifications You must be signed in to change notification settings

Sarang661/AlertAppbyFacialAnalysis

Repository files navigation

AlertAppbyFacialAnalysis

A countless number of people drive on the highway day and night. Taxi drivers, bus drivers, truck drivers and people traveling long-distance suffer from lack of sleep. People traveling long-distance suffer from lack of sleep. Due to which it becomes very dangerous to drive when feeling sleepy or angry or sad. The majority of accidents happen due to the drowsiness and sudden mood changes(emotion) of the driver. So, to prevent these accidents I have build a web application using Python, Django which will alert the driver when he feels angry or sad or surprised.

Tech Stack

Client: HTML, CSS, JavaScript

Server: Django, Python

Database: SQLite3 for local machine, Postgresql for deployment

Other: OpenCV, Image Processing, Machine learning, Face recognition

Architecture

5_DjangoApp pptx  Protected View  - PowerPoint 27-05-2022 22_00_51

OpenFace Feature Extraction Method

4_Feature_Extraction_from_face pptx  Protected View  - PowerPoint 27-05-2022 23_06_45

Run Locally

Clone the project

  git clone https://github.com/Sarang661/AlertAppbyFacialAnalysis.git

Install dependencies

  pip install virtualenv

  virtualenv myenv

  myenv\Scripts\activate

  pip install -r requirements.txt

Start the server

  python manage.py runserver

Project Demo


1) Run Project on LocalHost



Driver Alert App - Google Chrome 27-05-2022 23_32_09



2) Choose the image for processing



Driver Alert App - Google Chrome 27-05-2022 23_33_00

3) You will get Alert based on the emotion detected in image and face analysis of face detected in iamge. Multiple faces can be detected in the image.



Driver Alert App - Google Chrome 27-05-2022 23_34_08

Driver Alert App - Google Chrome 27-05-2022 23_44_02

About

A countless number of people drive on the highway day and night. People traveling long-distance suffer from lack of sleep. Due to which it becomes very dangerous to drive when feeling sleepy or angry or sad. So, to prevent these accidents I have build an web application using Python, Django which will alert the driver when he feels angry or sad…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published