1. A computer implemented method for modeling a background in a sequence of frames of a video, each frame including an array of pixels, comprising: detecting, for each frame, static corners using the array of pixels; extracting, for each static corner, features from a window of pixels around the static corner; determining, for each static corner, a descriptor from the corresponding features; storing each static corner and corresponding descriptor in a memory; and classifying each static corner as a background or foreground according to the descriptor to model a background in the video.