BackgroundSubtractorMOG2 save state

asked 2016-01-05 16:39:24 -0600

spatel gravatar image

It looks like there isn't a method to serialize/save the entire state of a BackgroundSubtractorMOG2 object. The getBackgroundImage() API does a good job but there are other matrices which aren't exposed via APIs e.g. u_mean,u_variance etc. I'd like to export the state of a Background subtractor and restore it on a different machine. What are the minimal set of values which need to be preserved to facilitate this?

edit retag flag offensive close merge delete