Patent ID: 9584814
Date: 2017-02-28
CPC Classifications: G06T,H04N

Claim:
1. A computer-implemented method of background foreground segmentation for video coding, comprising: learning a background model of a base frame comprising: accumulating frame difference magnitudes between the base frame and each of a plurality of reference frames of a video sequence forming a scene; comparing individual difference magnitudes to a plurality of activity thresholds to determine whether a pixel or block of pixels associated with the difference magnitude is active or inactive; forming a plurality of cumulative segmentation masks that each are the amount of pixels or blocks of pixels with the same total of the number of frame reference-activity threshold combinations in which the pixels or block of pixels are active, wherein the frame reference-activity threshold combination is one reference frame and one activity threshold used with a difference magnitude and available from the plurality of activity thresholds and the plurality of reference frames: and determining the background threshold used to assign the blocks or pixels to a background or a foreground of the base frame by using the cumulative segmentation masks.