0

background subtraction methods in OpenCV usually take a while to get the foreground correct. is there any way to cache data of these methods and use them later? (preferred in Python)

Anthraxff
  • 148
  • 1
  • 13

1 Answers1

0

Yes, I believe so. The cv::BackgroundSubtractor derives from cv::Algorithm, which supports read(), save(), and write(). specific BackgroundSubtractor subclasses should have implemented those methods.

These methods should be exposed in the Python API; the docs mention Python signatures.

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36