Get foreground mask without updating model

asked 2019-05-23 10:36:14 -0600

tobix10 gravatar image

updated 2019-05-23 10:38:13 -0600

I want to write an algorithm that detects camera tampering e.g blocking the view with piece of paper etc, so I thought about measuring the differences between current and background frame. I need to measure the level of these differences before updating MOG2 model then update the model. Can I do that?

I mean, that I don't want to update model with completely different image that is a result of tampering like piece of paper with random drawing in front of camera. Also I want to have only one MOG2 instance in the system (performance reasons).

edit retag flag offensive close merge delete



why (ab)use Background Subtractor classes, when it's clearly not what you want or need ?

berak gravatar imageberak ( 2019-05-23 12:41:27 -0600 )edit