GithubHelp home page GithubHelp logo

qqirui / trafficdetection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ab39826/trafficdetection

0.0 1.0 0.0 5.92 MB

We implement a system for vehicle detection and tracking from traffic video using Gaussian mixture models and Bayesian estimation. The system provides robust foreground segmentation of moving vehicles through a K-means clustering approximation as well as vehicle tracking correspondence between frames by correlating Kalman and particle filters.

MATLAB 100.00%

trafficdetection's Introduction

DESCRIPTION:
We implement a system for vehicle detection and
tracking from traffic video using Gaussian mixture models and
Bayesian estimation. In particular, the system provides robust
foreground segmentation of moving vehicles through a K-means
clustering approximation as well as vehicle tracking correspon-
dence between frames by correlating Kalman and particle filter
prediction updates to current observations through the solution
of the assignment problem. In addition, we conduct performance
and accuracy benchmarks that show about a 90 percent reduc-
tion in runtime at the expense of reducing the robustness of
the mixture model classification and about a 30 percent and 45
percent reduction in accumulated error of the Kalman filter and
particle filter respectively as compared to a system without any
prediction.

*In retrospect, the results for the particle filter were found to be miscalculated. Adjustment of the model assumptions must be made to show particle filter tracking improvements.

Read the project report for a more detailed description of the code.

INSTRUCTIONS:
In order to run the code, 

run the following command

foregroundEstimation('justCarsTrim.avi');

or any other .avi video you wish to see the results of.

This will output a video called 'foreground.avi' which will show the background segmentation

and tracking applied
contingent upon whether

trackingOn = 1;

or 

trackingOn = 0;

Be warned as this takes about 30 minutes to run the simulation and generate the file.

However, if you'd like you can view the result at the youtube link below instead which shows both output results.
https://www.youtube.com/watch?v=GwyQ3QdBzaY

--------------------------



trafficdetection's People

Contributors

ab39826 avatar

Watchers

James Cloos 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.