Questions tagged [background-subtraction]

Background-subtraction is a Computer-Vision technique that given a frame sequence from a fixed camera, processes pixels and separates them into foreground and background pixels.

Background Subtraction is a type of image segmentation which goal is to separate the parts of the image that are invariant over time (background) from the objects that are moving or changing (foreground).

The simplest techniques use frame differencing and more advanced techniques require using statistical methods. For example, a moving leaf of a tree would be considered foreground using simple frame differencing but with a proper statistical method it can be considered background as the leaf is always there, moving periodically.

Methods:

  • Frame differencing
  • Background as the average or the median of the previous nframes.
  • Background as the running average.
  • Pfinder (one Gaussian)
  • Mixture of K Gaussians
290 questions
-1
votes
1 answer

Back ground Subtraction class pros please answer

Can someone define the class BackgroundSubtractorMOG2.What does history(argument for the BackgroundSubtractor class mean).Is some technique like code books available using BackgroundSubtractorMOG2 class?? Thanks in advance
-1
votes
1 answer

opencv backgroundsubtractor not updating

I'm using python 2.7.9 and opencv version 2.4.8. I'm trying to detect moving cars from a movie. First frame in the movie already has a car and once the car leaves, the contour stays there. I tried playing with BackgroundSubtractorMOG params but they…
user3491525
  • 91
  • 1
  • 3
-2
votes
1 answer

OpenCv MOG2 Backgroundsubtraction function is not working well on C++

Hello everyone I used MOG2 function in C# there was no problem but when i try to do same thing on C++ there is a strange result. I believe it's about image's channels but i couldn't fix it . I need a hand thanks . Mat…
-2
votes
1 answer

Subtract at runtime in Android

I have three edittext named et1,et2,et3. I want to subract et1 and et2 and show the answer in et3. But this should be done without clicking any button. As soon as I write values in et1 and et2, the calculations have to be done and displayed in…
-3
votes
2 answers

How to put bounding box around the detected human outline

Here is the python code I have written :- import cv2 import argparse ap = argparse.ArgumentParser() ap.add_argument("-v", "--video", help = "path to the (optional) video file") args = vars(ap.parse_args()) if not args.get("video", False): cap…
Ritwik
  • 1
  • 1
  • 4
1 2 3
19
20