Skip to content

An OpenCV project that deals with Background Estimation using the Median filter

License

Notifications You must be signed in to change notification settings

Prasheel24/background-estimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video background estimation

License MIT

Author

Prasheel Renkuntla - GitHub

I am pursuing my Master's in Robotics at the University of Maryland, College Park. My primary area of interest is in Vision integrated Robot Systems.

Overview

  • This project demonstrates the implementation of a simple logic to get the background from a video. It works on the fact that for every change in the frame of a video, the overall median frame has a background that is free from all the moving objects.
  • Code is available in both C++ and Python.

Dependencies

  • Python
  • C++ 11/14/17
  • CMake

Run

Each folder has its own readme to run the code for Morgan Bridge traffic camera feed.

Demo

The first output frame is the median frame given below-

Median Frame

Press Esc to get the next frame.

The second output is the gray median frame,

Gray Median Frame

The Final output shows the moving objects that were removed from the video.

Difference Frames

Bugs

The python code has intermittent issues of a.any() or a.all(). Please run the code again to solve it.

License

MIT License

Copyright (c) 2020 Prasheel Renkuntla

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

References

  • Video Background Estimation - Tutorial

About

An OpenCV project that deals with Background Estimation using the Median filter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published