Giter Site home page Giter Site logo

jessicaknet / distracted_driver_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuxiangjohn/distracted_driver_detection

0.0 0.0 0.0 2.41 MB

Kaggle distracted driver detection (camera application)

Python 0.38% Jupyter Notebook 99.62%

distracted_driver_detection's Introduction

Distracted_Driver_Detection

We've all been there: a light turns green and the car in front of you doesn't budge. Or, a previously unremarkable vehicle suddenly slows and starts swerving from side-to-side.

When you pass the offending driver, what do you expect to see? You certainly aren't surprised when you spot a driver who is texting, seemingly enraptured by social media, or in a lively hand-held conversation on their phone.

model

The 10 classes to predict are:

  • c0: normal driving
  • c1: texting - right
  • c2: talking on the phone - right
  • c3: texting - left
  • c4: talking on the phone - left
  • c5: operating the radio
  • c6: drinking
  • c7: reaching behind
  • c8: hair and makeup
  • c9: talking to passenger

model model

Dependency

The main Python packages:

The running environment is Jupyter Notebook.

Data

The dataset is provided by Kaggle State Farm. You can down load the dataset after creating an ancount.

The directory should be name as "capserver". Under this directory, there should be three folders: "data", "cache", "subm".

The "data" folder is used for the dataset. The cache is created for the storage of the weights and data. And the submission file ".csv" will be created in the subm folder.

Run

In the command line, make sure the you are in the "capserver" folder, then run the command as below:

jupyter notebook final.ipynb

It will start the jupyter notebook and open the project file in your browser

The total running time will be around 12 hours in the AWS server P2.xlarge. The running result can be seen in the .ipynb file.

Application

The real-time camera application is built in .py file.

distracted_driver_detection's People

Contributors

yuxiangjohn avatar

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.