Coder Social home page Coder Social logo

bnair2001 / driver-monitoring-system Goto Github PK

View Code? Open in Web Editor NEW
22.0 1.0 9.0 197.64 MB

An app which uses open CV to monitor if the driver is alert of asleep, and a state farm dataset trained model which scans for 9 different types of distraction.

Home Page: http://bnair2001.github.io/Driver-monitoring-system

CMake 0.13% Java 98.33% Jupyter Notebook 1.47% Python 0.05% C++ 0.02%
opencv driver monitor scans alert tensorflow keras-tensorflow java android-application distracted-driving

driver-monitoring-system's Introduction

Driver-monitering-system

Driver behaviour detecting app that warns if the behaviour is detrimental.

How it works:

  • The app starts of with the camera running and it looks for the eyes in the video.
  • It then looks for any distracting behaviour shown by the driver.
  • If the behaviour is detected to be bad it warns the driver.
  • The alert runs till the driver touches the screen and if it takes too long an sos is sent to his emergency contact number

Note:

The repo is divides into 3 files:

  • The alert folder contains the app that triggers the alarm by flashing the screen red and also makes the flashlight of the camera to blink.
  • The tfmobile folder consists of the android app that detects around 9 classes of distractions such as:
    • safe driving
    • texting - right
    • talking on the phone - right
    • texting - left
    • talking on the phone - left
    • operating the radio
    • drinking
    • reaching behind
    • hair and makeup
    • talking to passenger
    • Here is the accuracy and loss of the cnn model used to build this application:
  • The vigilate folder contains the app that detects if the driver is sleeping or not.
  • example: Image 1 image 2

Installation:

  • First install openCv manager for android by using this link.
  • Next open the folder of the app you wish to use via android studio and you are good to go.

Important note:

Th three apps are now seperate apps, if you would like to contribute plases help by combining the three into one.

Credits:

Bharath Nair,
Steve Paul

References:

tensorflow for poets
OpenCV for android
The ML model for the tfmobile app

driver-monitoring-system's People

Contributors

bnair2001 avatar st2-ev avatar

Stargazers

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

Watchers

 avatar

driver-monitoring-system's Issues

Merge the three folders

Merge the three folders alert, vigilate and tfmobile which are 3 separate android apps built on Gradle. Your task is to put them into different activities of the same app.

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.