Code Monkey home page Code Monkey logo

are-you-drowsy's Introduction

πŸš— Are you Drowsy? πŸ’€

In fiscal year 2019, the road transport passengers amounted to around 22.6 trillion passengers per kilometer accross India. The fact that this number is so huge where we can’t rely on other driving passenger for our safety leads us to at least contribute to develop a system which can be used in the mobile vehicles to monitor the drivers at each and every moment.

This project is a drowsiness detection system. It uses a camera to monitor the EAR (eye aspect ratio) of the driver. After it reaches a certain value, an alarm is played to wake the driver and make him focus on the road. If you are travelling in a group, this could be a good time switching drivers.

"40% of the on road accidents occur due to Sleep deprivation"

The following project is an implementation of @akshaybahadur21: Drowsiness Detection System, with additional improvements to give users more detailed information. Below I have mentioned the changes,

  • Graphical Output
  • Drowsy Count displayed on the screen
  • Twilio API integration to send 'sms' to emergency contact number
  • Displaying real time data over thingspeak


To know about Algorithm and Code Dependencies I highly recommend you to visit @akshaybahadur21: Drowsiness Detection System

Results πŸ’―


To view, video file

Whenever the screen displays "Drowsiness Detected", SMS is sent to the verified
emergency contact number using Twilio API.
TWILIO

Below, these were the frames which were captured at the time of drowsiness Not a really "good acting" from my end

Execution πŸ”§

  • You need to run the main_drowsy.py for execution
C:\Users\iwill\Desktop\github\11-Are you Drowsy\Are-you-Drowsy> python main_drowsy.py
  • The frames captured via execution of the project will update automatically via this line and will be saved in the Drowsy-Clicks folder
cv2.imwrite('Drowsy-Clicks/drowsy%d.jpg' % drowsy_count,frame)		#extracts that particular frame
  • For Twilio API to work uncomment the below line which is commented out by default
  • For Twilio Documentation, see
client.api.account.messages.create(to="emergency_number",from_="+19403267422",body=body)

Contribution 🀝

This project has a room for lots of improvement which can be done together to add new features or displaying the data in a more beautiful manner. I hope you can connect with me via my Discord


I hope you like the project
~ Swarup Tripathy ⏳

are-you-drowsy's People

Contributors

curovearth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

are-you-drowsy's Issues

Error when starting the program

Traceback (most recent call last):
File "/home/dio/project/Are-you-Drowsy/main_drowsy.py", line 5, in
import dlib
File "/home/dio/.local/lib/python3.10/site-packages/dlib/init.py", line 19, in
from _dlib_pybind11 import *
ImportError: /home/dio/.local/lib/python3.10/site-packages/_dlib_pybind11.cpython-310-x86_64-linux-gnu.so: undefined symbol: cblas_dtrsm

pip show dlib
Name: dlib
Version: 19.24.0
Summary: A toolkit for making real world machine learning and data analysis applications
Home-page: https://github.com/davisking/dlib
Author: Davis King
Author-email: [email protected]
License: Boost Software License
Location: /home/dio/.local/lib/python3.10/site-packages

OS: OS: Manjaro Linux x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.