Driver Drowsiness Detection Using Brainy Pi

by mohamedhussainlearnings in Circuits > Raspberry Pi

148 Views, 1 Favorites, 0 Comments

Driver Drowsiness Detection Using Brainy Pi

download1.jpg

Imagine giving your devices the power to think right where they are! Edge AI is all about supercharging everyday gadgets like smartphones, IoT devices, and gateways with the smarts of artificial intelligence. Instead of relying on faraway clouds or data centers, this cutting-edge technology brings AI directly to your fingertips. Meet Brainy Pi, your intelligent companion at the edge!

In this project, we have implemented Drowsiness detection model on Brainy Pi, a Raspberry pi alternative.

To learn about using Brainy Pi, visit the official website Brainy pi.

Note: we can also implement this project in Raspberry Pi, but Brainy Pi is the easiest option for beginners.

Drowsiness Detection System

Accidents caused by drowsy driving are a significant concern worldwide. The project's primary objective is to create a system capable of detecting drowsiness in drivers in real time, enabling timely alerts to prevent potential accidents.

The Real-Time Drowsiness Detection System is an AI-powered software solution developed to address the critical issue of accidents caused by driver sleepiness during driving. This project aims to enhance road safety by detecting and alerting drivers who may be drowsy while driving, preventing potential accidents and saving lives.

Our system when installed on a vehicle accurately identifies the driver's face, detect their eyes, and classify whether the eyes are open or closed, indicating the driver's wakefulness state.

Supplies

brainy pi.png
  • Brainy Pi
  • UNIX OS Terminal

Remote Connection to Brainy Pi

conn.png

Secure a remote connection to the brainy pi using the command,

ssh -X pi@auth.iotiot.in -p 65530

 

After entering the password, a remote connection is established on the terminal.

Cloning Git Repository

The next step is to clone the git repo of the project for running the Python script, the command for it is as follows,

git clone https://gitlab.iotiot.in/interns-projects/drowsiness-detection.git

Change the working directory to the project's directory by using the cd command,

cd drowsiness-detection/program

Run Inference File for Drowsiness Detection

inf.png
inf1.png
inf2.png

Run the Python script Inference.py which takes input from vide.mp4 using the command, 

python3 Inference.py

It displays whether the driver or person in front of the camera is drowsy or normal.