MATLAB Answers

Intensity based background subtraction for effective object detection

2 views (last 30 days)
Bhagyasri Kandru
Bhagyasri Kandru on 19 Jan 2016
Answered: Image Analyst on 21 Feb 2016
How can I consider n frames for comparison to find the stationary objects?

Answers (2)

Dima Lisin
Dima Lisin on 21 Feb 2016
Try using vision.ForegroundDetector object in the Computer Vision System Toolbox.

Image Analyst
Image Analyst on 21 Feb 2016
My attached demo does exactly this. It computes a "background" image as the sum of previous frames in a video. Then it subtracts that from the current frame.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!