Coder Social home page Coder Social logo

gpsinghsandhu / background-subtraction-using-gmm Goto Github PK

View Code? Open in Web Editor NEW
65.0 5.0 40.0 5.38 MB

This project is the C++ implementation of Background Subtraction using adaptive GMM models as discussed by Zoran Zivkovic in his paper "Improved Adaptive Gaussian Mixture Model for Background Subtraction".

C++ 100.00%

background-subtraction-using-gmm's Introduction

Background-Subtraction-using-GMM

REQUIREMENTS:

  • Any C++ compiler (originally developed in visual studio, thus remove conio.h and _getch to be able work on other enviroment)
  • OpenCV 2.2 or above (originally developed on OpenCV 2.3.1)

This project is the C++ implementation of Background Subtraction using adaptive GMM models as discussed by Zoran Zivkovic in his paper "Improved Adaptive Gaussian Mixture Model for Background Subtraction".

This project was developed as a part of learning about the computer vision and thus gives (though very basic) an efficient and accurate implementation of the above mentioned algorithm. It uses OpenCV just for the data acquisition and preprocessing and its 'Mat' object for susequent processing. Following which is an implementation for the GMM models as discussed in the paper.

The testing data has also been provided with the project. It is a part of the PETS 2009 dataset.

Note: This project was developed on the basis of my undrstanding of the paper and thus must not considered an exact implementation of the project.

Check out the result video - http://youtu.be/QwmX3U78K6A

background-subtraction-using-gmm's People

Contributors

gpsinghsandhu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

background-subtraction-using-gmm's Issues

Can not find file

I can not find file #include <opencv2\Blob_detection.hpp>, it make an error.

N_ptr was nullptr

Hello, I am running the code in Visual Studio 2017 in Debug mode. The code builds successfully, however when I run it I get this error:
line 302 start = N_ptr->pixel_s; --> Exception thrown: read access violation. N_ptr was nullptr.

How can I solve?

Thank you

why "*(r_ptr++);" stands for R,

A quick glance at the precedence table for operators will tell you that postfix increment has a higher precedence (16) than dereference / indirection (15). This means that the complex expression *p++ is going to be grouped as: *(p++). That is to say, the * part will be applied to the value of the p++ part. So let's take the p++ part first.

rVal = *(r_ptr++);
gVal = *(r_ptr++);
bVal = *(r_ptr++);

https://stackoverflow.com/questions/18481740/pointer-expressions-ptr-ptr-and-ptr

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.