1. A method for compensating for lighting darkness in a scene depicted by a sequence of video frames received from a video input source, the method comprising: buffering a plurality of video frames of the sequence of video frames; receiving a raw video frame of the sequence of video frames; and upon determining that a lighting level of at least one region of the raw frame is below a specified threshold: generating a current video frame by assigning a compensated color-characteristic value to each pixel included in the at least one region, wherein the compensated color-characteristic value for each respective pixel is calculated by averaging color-characteristic values of a corresponding pixel sampled from each of the buffered plurality of video frames, and passing the current video frame to a background-foreground module configured to identify which pixels in the current frame depict a portion of a background of the scene.