Ask Your Question

Revision history [back]

BackgroundSubtractorMOG2 save state

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?