• Stars
    star
    480
  • Rank 90,942 (Top 2 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple Drowsiness Detection module for humans. 😴 🚫 🚗

Drowsiness Detection OpenCV 😴 🚫 🚗

This code can detect your eyes and alert when the user is drowsy.

Applications 🎯

This can be used by riders who tend to drive for a longer period of time that may lead to accidents

Code Requirements 🦄

The example code is in Python (version 2.7 or higher will work).

Dependencies

  1. import cv2
  2. import imutils
  3. import dlib
  4. import scipy

Description 📌

A computer vision system that can automatically detect driver drowsiness in a real-time video stream and then play an alarm if the driver appears to be drowsy.

Algorithm 👨‍🔬

Each eye is represented by 6 (x, y)-coordinates, starting at the left-corner of the eye (as if you were looking at the person), and then working clockwise around the eye.

It checks 20 consecutive frames and if the Eye Aspect ratio is less than 0.25, Alert is generated.

Relationship

Summing up

For more information, see

Results 📊

Execution 🐉

To run the code, type python Drowsiness_Detection.py

python Drowsiness_Detection.py
Made with ❤️ and 🦙 by Akshay Bahadur

References 🔱

More Repositories

1

Emojinator

A simple emoji classifier for humans. 🖖
Python
501
star
2

Autopilot

A simple self-driving car module for humans 🚘 🛣️
Python
488
star
3

HandMovementTracking

A simple hand movement tracking module for humans ✍️
Python
285
star
4

Facial-Recognition-using-Facenet

A simple implementation of facial recognition using facenets for humans 🧔 🔍
Python
276
star
5

QuickDraw

A simple implementation of Google's Quick, Draw Project for humans. 🖌️ 🖼️
Python
222
star
6

Socratic

A simple Mathematical utility for Humans 🦉
Python
175
star
7

Digit-Recognizer

A Machine Learning classifier for recognizing the digits for humans 🎰
Python
158
star
8

BreastCancer_Classification

Machine learning classifier for cancer tissues 🔬
Python
72
star
9

GymLytics

Visual Analytics of different exercises for humans 🏋️
Python
68
star
10

Alphabet-Recognition-EMNIST

Alphabet recognition using EMNIST dataset for humans ⚓
Python
68
star
11

Devanagiri-Recognizer

A Hindi Alphabet classifier for humans 🇮🇳
Python
60
star
12

Breast-Cancer-Deep-Learning

Breast Cancer classification using deep neural network 🔬
Python
35
star
13

DigiEncoder

A digit autoencoder for humans 🧬
Python
35
star
14

Smart_Mirror

C
26
star
15

Sort

Implementation of Bubble Sort, Selection Sort, Insertion Sort, Merge Sort & Quick Sort for humans 〽️
Java
26
star
16

FaceEncoder

A face autoencoder for humans 👨‍🎤
Python
24
star
17

Explore-ML-Hyderabad-2019

My session at Google Explore ML, Hyderabad 2019 for humans
Jupyter Notebook
20
star
18

keras-secure-image

Add-on library for Keras to train on encrypted images for humans 🛡️
Python
18
star
19

Breast-Cancer-Neural-Networks

Classifying malignant and benign tumors using Neural Networks 🔬
MATLAB
17
star
20

Guitar-Learner

Guitar chord detection and classifier for humans 🎸
Python
17
star
21

3D-Object-Tracking

A simple 3D Object Tracking module for humans 🍺
Python
17
star
22

Emancipation-of-Leetcode

My solutions for leetcode questions for humans.
Java
15
star
23

Automated-Selenium

Python automation for humans 🎯
Python
12
star
24

CrimeRate_Prediction_ML

A simple Time Series Analysis module for humans ⏰
Python
12
star
25

ObjectTracking

An object tracking for humans 🔬
Python
12
star
26

IISc-Bangalore-2019

Material for my session at Indian Institute of Science, Bangalore 2019 for humans.
Jupyter Notebook
11
star
27

FaceOrienter

A simple face orienter for humans.
Python
10
star
28

CricketLytics

Cricket analytics for humans 🏏
Python
10
star
29

Google-DSC-TTT-2019

My session details for DSC Train-the-trainer, September 27, 2019 for humans
Jupyter Notebook
10
star
30

MathEw

A Mathematics helper for humans 🦖
Python
10
star
31

ODSC-Boston-2019

My Webinar at ODSC, Boston 2019 for humans
Jupyter Notebook
10
star
32

Emancipation-of-CS229

My machine learning handwritten notes for humans
9
star
33

Rock-Paper-Scissors-Lizard-Spock

The classic game of Rock-Paper-Scissors, with a twist for humans. 🗿 📝 ✂️ 🦎 🖖
Python
9
star
34

ImageSegmentation

An image segmentation module for humans 🛹
Python
8
star
35

FaceDetection

A face detection module for humans 🧔‍♂️
Python
8
star
36

Ascinator

Convert RGB Image to ASCII format for humans 📇
Python
8
star
37

Block-Chain

A module to understand the working of blockchains for humans 🔗
Python
7
star
38

ODSC-India-2019

My session at Open Data Science Conference, Bangalore 2019 for humans
Jupyter Notebook
7
star
39

BLOB

This repository contains all the large files which are referenced across my repos and slides for humans ⛰️
6
star
40

Google-DevFest-Kolkata-2019

My session at Google-DevFest, Kolkata 2019 for humans
Jupyter Notebook
6
star
41

DHS-2019

My session at Data Hack Summit, 2019 for humans
6
star
42

Analytics-Vidhya-Webinar-2020

My session at Analytics Vidhya Webinar for humans
6
star
43

ML_Poker

Poker hand prediction using machine learning
MATLAB
6
star
44

Emancipitaion-of-Apache-Spark

My experiments with Apache Spark for Humans ⭐
Java
6
star
45

fashion-MNIST

A classifier based on fashion MNIST dataset for humans 🧥
Python
6
star
46

Spam-Classifier

Spam classifier using text analysis 📈
Jupyter Notebook
5
star
47

MachineLearning-CourseEra

Machine Learning Course for humans 📜
MATLAB
5
star
48

Raining-Emoji

A wrapper for emoji rainfall for humans 🌧️ 🐶 🐵 🦁 🐷 🐨
Python
5
star
49

ISODS-Young-Data-Scientist-Award-2020

Contains the link and article for The Most Influential Young Data Scientist of the Year 2019 by ISODS for humans
5
star
50

TF-Everywhere-2021

My session atTensorFlow Everywhere India for humans
4
star
51

PyData-Pune-2019

My Session at PyData, Pune 2019 for humans
Jupyter Notebook
4
star
52

iCoin

A simple blockchain currency module for humans 🪙
Python
4
star
53

Rat_In_A_Maze

Rat in a Maze problem for humans 🐭
Java
4
star
54

NARI-Native-Application-for-Rescue-India

A safety application module for women 👷‍♀️ 🦺
Java
4
star
55

Search

Linear Search, Binary Search, Binary Search with Recursion for humans 🌪️
Java
4
star
56

KaggleDays-Mumbai-19

My session at Kaggle Days - Mumbai, 2019 for humans
4
star
57

akshaybahadur21

akshaybahadur21 for humans 👨‍🚀
3
star
58

Rectangle_Intersect

A module that gives the overlap area of two rectangles intersection for humans 🥡
Java
3
star
59

TFUG-Hyderabad-2020

My session at TensorFlow User Group - Hyderabad 2020 for humans
3
star
60

SIT-DL-Workshop-2019

Notebooks for my DL workshop at Symbiosis Institute of Technology, Pune
Jupyter Notebook
3
star
61

Emancipation-of-Python

My experiments with Python for humans
Jupyter Notebook
3
star
62

GDG-Chennai-2020

My session at Google Developers Group in Chennai for humans
2
star
63

DevSangamam-2020

My session at DevSangam - Chennai for humans
2
star
64

Google-DevFest-GNR-2019

My session at Google-DevFest, Gandhinagar 2019 for humans
2
star
65

Google-Experts-Summit-California-2019

My session at Google Experts Summit, California 2019 for humans
2
star
66

SCOURSE

A smart course recommender for CMU students 🔍 🎓
Python
2
star
67

GirlScript-2020

Details for the guest lecture at GirlScript COVID Coding Program for humans
2
star
68

tf-roadshow-blore-2019

Details for my session at Tensorflow Roadshow, Bangalore 2019 for humans.
2
star
69

Monash-TTN-2020

My session at Tech Talk Nights at Monash University for humans
2
star
70

GradientDescentExample

A gradient descent module for humans 🏔️
MATLAB
2
star
71

bigDL-Movie-Rec

A simple movie recommendation using. bigDL for humans 🎬
Jupyter Notebook
2
star
72

PyCon-India-2020

My session at PyCon - 2020 for humans
2
star
73

TFUG-Mysore-2020

My session at TensorFlow User Group - Chennai for humans
2
star
74

Ensemblers-Movie-Recommendation

Jupyter Notebook
2
star
75

SpringBoot-Docker

A sample application using Spring Boot 🧷
Java
2
star
76

ISODS-2020

My session at The International Society of Data Scientists 2020 for humans
1
star
77

KaggleDays-Surat-20

1
star
78

Pie-and-AI-2020

My session at Pie & AI - Mumbai for humans
1
star
79

Fierce-Embedded-Innovation-2020

Python
1
star
80

Emancipation-of-NLP

My notes and experiments with Natural Language Processing for humans
Jupyter Notebook
1
star
81

Foo.bar

Foo bar challenge for humans 🐰
1
star
82

ML-Fairness-101

Identifying fairness issues in AI-enabled systems in a credit scoring scenario for humans
Jupyter Notebook
1
star
83

Prometheus_Monitoring

A module for Prometheus monitoring for humans 👾
Java
1
star
84

Symbiosis-Alumni-Lecture-2020

My session at Symbiosis Alumni Meet - Pune for humans
1
star
85

TFUG-India-Summit-2020

My session at TensorFlow User Group India Summit for humans
1
star
86

Techtonic-2K20

My Keynote at Techtonic - 2K20 (Sinhgad Institute of Technology,Lonavala)
1
star
87

ISODS-2019

My session at The International Society of Data Scientists 2019 for humans
1
star
88

DSC-GITAM-2020

My session details for DSC GITAM, April 25, 2020 for humans
1
star
89

PyData-Global-2020

My session at PyData Global for humans
1
star