Code Monkey home page Code Monkey logo

precrash-detection's Introduction

Precrash-Detection

Submission for Finals of Continental Fiction2Science 2019 Hackathon.
Secured the highest score for ideation and implementation.

Usage

  1. Run the vid2frame.py to convert video to frames. The below is an example of usage
    python vid2frame.py --video_path test_vid3.mp4 --frame_path test_vid3 
    [ This will read test_vid3.mp4 and save the frames in test_vid3 ]
  1. Execute merger.py for precrash detection. The below is an example of usage
  python merger.py --image_path test_vid3 --det det --trap_path trap_vid3.png  
  [ This will read the frames from test_vid3 along with the given trapezium mask trap_vid3.png ]
  1. Alert will be given as two types:
    • Preemptive alert: When there is suspicion of an accident, there will be an ouput in the terminal stating preemptive alert along with the object identified and frame number in which the alert was thrown.
    • Ultimate alert: This is when the algorithm knows for sure the accident is going to occur. In this case, it will output APPLY HEAVY BREAKS NOW along with the object identified and frame number in which the alert was thrown.
    • In case when there is no event of suspicion of crash, no output is given.

Example Output

example

Pretrained models

Yet to upload

Note

  • The trapezium mask that has to be input (trap_vid3.png in the above examples) is specific for the dashboard dimension of the car.

precrash-detection's People

Contributors

keerthan2 avatar

Stargazers

Venkatakrishnan Sutharsan avatar

Watchers

 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.