ShobhitRathi / DrowsyRide

A project to prevent road accidents caused by driver's sleepiness

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Driver drowsiness detection - Setup and Installation

You need to have anaconda installed on your system :)

Step 1: Update conda

conda update conda

Step 2: Update anaconda

conda update anaconda 

Step 3: Clone the github repository

git clone https://github.com/ShobhitRathi/DrowsyRide

Step 4: Create a virtual environment

conda create -n env_dlib 

Step 5: Activate the virtual environment

conda activate env_dlib

Step 6: Install dlib

conda install -c conda-forge dlib 

If all these steps are completed successfully, then dlib will be installed in the virtual environment env_dlib. Make sure to use this environment to run the entire project.

Step 7: Installing packages

pip install -r requirements.txt

Step 8: Running the webserver!

python app.py

And the app runs on the localhost of port 5000, And you can visit, and see it!

Step to deactivate the virtual environment

conda deactivate 

About

A project to prevent road accidents caused by driver's sleepiness

License:MIT License


Languages

Language:JavaScript 31.8%Language:Python 28.5%Language:HTML 23.2%Language:CSS 16.6%