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 KNN Background Subtraction #17

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

Implement KNN Background Subtraction #17

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

Comments

@Blindspot22
Copy link
Owner

Description:

  • Implement the KNN (K-Nearest Neighbors) algorithm as an alternative method for background subtraction.

Implementation Steps:

  • Import the BackgroundSubtractorKNN module from OpenCV.
  • Initialize the KNN background subtractor using BackgroundSubtractorKNN::default.
  • Modify the video processing loop to apply the KNN background subtractor to each frame, similar to the MOG2 implementation.
  • Retrieve and display the foreground mask generated by the KNN algorithm, comparing it with the MOG2 output.
  • Experiment with and adjust KNN-specific parameters such as the history, distance threshold, and detect shadows to optimize performance.
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