MATLAB: Motion detection with background subtraction

image processingvideo processing

hello everyone;
i'm working with motion detection, using "vision.ForegroundDetector" I'd like to just make sure about the parameter "NumTrainingFrames", if i set it for example as it's "100"….at this stage will the background be generated at each frame with the training of 100 frames??? or just in the beginning of the treatment the background will be generated based on the first 100 frames??
thank you

Best Answer

The background will be calculated once, based upon those training frames.