Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MOG2 Background Subtraction #16

Open
Blindspot22 opened this issue Aug 13, 2024 · 0 comments
Open

Implement MOG2 Background Subtraction #16

Blindspot22 opened this issue Aug 13, 2024 · 0 comments
Labels
ticket issues

Comments

@Blindspot22
Copy link
Owner

Description:

  • Implement the MOG2 (Mixture of Gaussians) algorithm for background subtraction to isolate moving objects from the background.

Implementation Steps:

  • Import the necessary OpenCV modules required for background subtraction, particularly the BackgroundSubtractorMOG2.
  • Initialize the MOG2 background subtractor using BackgroundSubtractorMOG2::default.
  • Integrate the background subtractor into the video processing loop, applying it to each captured frame.
  • Retrieve the foreground mask (binary image) where the moving objects are white, and the background is black.
  • Test the implementation by displaying the foreground mask and adjusting parameters such as the history, variance threshold, and detect shadows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ticket issues
Projects
Status: Ready
Development

No branches or pull requests

1 participant