GithubHelp home page GithubHelp logo

ab39826 / trafficdetection Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 8.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 People

Contributors

ab39826 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

trafficdetection's Issues

Undefined function or variable 'findNewLabel' When using trackingOn = 1;

Hi when trying to use the flag:
trackingOn = 1;

I get the following ERROR:

`
Undefined function or variable 'findNewLabel'.

Error in addModel (line 83)
newLabel = findNewLabel(prevLabelVector);

Error in foregroundEstimation (line 230)
prevModel = addModel(prevModel, centroids, height, width);
`

can you tell me what this flag is used for and how to make it work ? Thanks

Undefined function 'kalmanTimeUpdate' for input arguments of type 'struct'.

with onTracking =1 and getting error like below:

Undefined function 'kalmanTimeUpdate' for input arguments of type 'struct'.
Error in vehicleTracking (line 22)
[predictedCentroids timeFilter] = kalmanTimeUpdate(prevFilter);
Error in foregroundEstimation (line 238)
[curModel orderedCentroids] = vehicleTracking(centroids, prevModel);

then I chang the function of " kalmanTimeUpdate(prevFilter)" to particleTimeUpdate(prevFilter ,error accurs like this:

Index exceeds matrix dimensions.
Error in particleTimeUpdate (line 13)
prevWeightMatrix = prevFilter(3).f;
Error in vehicleTracking (line 22)
[predictedCentroids timeFilter] = particleTimeUpdate(prevFilter);
Error in foregroundEstimation (line 238)
[curModel orderedCentroids] = vehicleTracking(centroids, prevModel);

can anyone help me? Thanks

undefined kalmanTimeUpdate

hi im trying to run your code with version 9.0.0.341360 (R2016a). with onTracking =1 and getting error like below

Undefined function or variable 'kalmanTimeUpdate'.

Error in vehicleTracking (line 22)
[predictedCentroids timeFilter] = kalmanTimeUpdate(prevFilter);

Error in foregroundEstimation (line 238)
    [curModel orderedCentroids] = vehicleTracking(centroids, prevModel);

i already googling kalmanTimeUpdate function and not getting any result, could you guide me how to resolve this ?

Re-adapting the code for people Extraction

Thanks a lot , i was able to ran the test so easily ... But i want to make foreground extraction for people detection and the code didn't produce usefull results (example for https://www.youtube.com/watch?v=UF8uR6Z6KLc) ... Please can you help me to extract the person from a video (I know a little about kalman filter but i would know some explanation on how to change the parameters in the code too) because your implementation seems for me the most useful :)
Here are some results i have obtained by running the code on : https://www.youtube.com/watch?v=OFPwDe22CoY
http://hpics.li/c8cd1fc
http://hpics.li/23c2b2f
http://hpics.li/caa1ce2

You can remark some interferences in the captured images but i mostly think that there is some parameters i can change to make it actually work.

Thanks

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.