Use Codebook algorithm for moving object detection
4.0
This code is based on the codebook algorithm in the real-time foreground – background segmentationusing codebook model. It is implemented on the C + + platform and uses opencv version 2.3.1 to realize the detection of moving objects. The basic idea of codebook algorithm is to get the time series model of each pixel. This model can deal with time fluctuation well, but it needs a lot of memory. Codebook algorithm establishes a codebook (CB) for each pixel of the current image