Serializing BackgroundSubtractor
What's the easiest way in C++ to serialize or with other way save BackgroundSubtractor's state.
What's the easiest way in C++ to serialize or with other way save BackgroundSubtractor's state.
it is simply not possible.
since the "model" here is composed from the recent frames from your camera (or video), and has to be continuously updated, it does not make any sense to serialize it, imho.
for a different situation (or even, a different point in time), you have to re-learn the model.
Asked: 2017-05-18 04:05:00 -0600
Seen: 224 times
Last updated: May 18 '17
How to change BackgroundSubtractorMOG2 options
Access to MOG2 parameters via algorithm interface in 2.4.2 version
Cannot set user parameters in BackgroundSubtractorMOG2
Remove buttons from their background so I can re-use button image
Continuous background removal, keeping human form
In BackgroundSubtractorMOG2 set background fixed(static) like BackgroundSubtractorMOG
cv::Mat serialization to binary file
BackgroundSubtractor::getBackgroundImage in pure C