Skip to content

A Python script that checks driver attentiveness using machine learning computer vision.

License

Notifications You must be signed in to change notification settings

AtharvaTaras/Driver-Attentiveness-System

Repository files navigation

Driver-Attentiveness-System

Project Submission for IBM Internship (AICTE, Edunet Foundation Dec 2022 - Feb 2023 Batch)
Atharva Taras (AI_ADV_21 Dec)
AISSMS Institute of Information Technology, Pune

A Python program that checks driver attentiveness using computer vision.
Watch Video Demonstration
View Presentation
View Source Code

Prerequisites

> Python 3.8.5 > Visual C++ > OpenCV > Numpy > OS > DateTime > Dlib > Face-Recognition > Cmake > SciPy > Time > Imutils > Winsound > Pushbullet (API and Mobile App) > Socket

Sample Outputs -

face_detect.mp4
face_extract.mp4
face_landmark.mp4
blink_check.mp4

To create a custom Python virtual environment

python -m venv custom_venv
custom_venv\Scripts\activate.bat  

Install all requirements at once

pip intall -r requirements.txt

You may run into errors while installing dlib, try this to fix it (worked for me)

  1. Make sure you have the latest version of Microsoft Visual C++ installed

  2. Clone this repository to get all the wheel (.whl) files

git clone https://github.com/datamagic2020/Install-dlib.git
  1. Install using manually specifying file path
pip install "path_to_cloned_repo\wheel_package_for_your_python_version"
  1. You can check your installed Python version using
python -V