A computer implemented method models a background in a sequence of frames
of a video. For each frame, the method detects static corners using an
array of pixels of the frame, and extracts, for each static corner,
features from a window of pixels around the static corner. For each
static corner, a descriptor is determined from the corresponding
features. Each static corner and corresponding descriptor is stored in a
memory, and each static corner is classified as a background or
foreground according to the descriptor to model a background in the
video.