Skip to content

I could see lots of Noise after applying cv2.createBackgroundSubtractorMOG2 #1

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

Open
vasanthhr opened this issue Feb 25, 2019 · 1 comment

Comments

@vasanthhr
Copy link

Hello ,

I tried to apply similar logic as you mentioned in your github. But I could see noise after applying cv2.createBackgroundSubtractorMOG2.

(Even your screenshots looks more accurate and very less noise, please guide if you changed your code at later moments).

@ankushbhatia2
Copy link
Owner

I apologize for replying late I was in the middle of switching a job and settling into a new city. Getting new workstations and setting up everything took a little time and amidst all of that I forgot about your issue. Sincere apologies.

Coming to your issue, No, I didn't change my code. I didn't get any noise after removing the background but you can try removing the noise using cv2.fastNlMeansDenoising().

If that won't work you can try a different image segmentation method : cv2.createBackgroundSubtractorKNN() or you can tweak the parameters of the existing function. Check their documentation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants