1. A method of filtering one or more blobs, the method comprising: determining a number of a plurality of blobs generated for a video frame; determining a size of a first blob, wherein the first blob includes pixels of at least a portion of a first foreground object in the video frame; and filtering the first blob from the plurality of blobs when the size of the first blob is less than a size threshold, wherein the size threshold is based on the number of the plurality of blobs generated for the video frame.