1. A method for processing image data, the method comprising: identifying a background scene in a background frame of an image; setting each of a plurality of pixel locations in the background frame as a respective background pixel; for each of the pixel locations, determining a respective running mean and a respective running variance based on a brightness component of the background frame at the pixel location; identifying a subsequent frame as a current frame; determining a mean weight associated with the current frame based on exposure settings of an image capturing device significantly changing; for each of the pixel locations in the current frame identified as a background pixel: determining a pixel mean weight based on whether one of the current pixel location changed in the current frame from a foreground pixel to a background pixel and the current pixel location did not change in the current frame from a foreground pixel to a background pixel; updating the running mean based on one of the mean weight and the pixel mean weight; updating the running variance based on one of a plurality of variance weights; for each of the pixel locations in the current frame: identifying if the current pixel location is one of a background pixel and a foreground pixel based on a brightness component of the current pixel location in the current frame, a current running mean of the current pixel location, and a current running variance of the current pixel location; and updating the running mean for the current pixel locations identified as a foreground pixel.