1. An apparatus for the analysis of a sequence of captured images covering a scene having a background, for detecting and tracking of moving and static objects and for matching the patterns of object behavior in the captured images to object behavior in predetermined scenarios, the apparatus comprising the elements of: at least one image sequence source for transmitting a sequence of images to an object tracking program; and an object tracking program for tracking an object irrespective of the aspect ratio thereof, comprising: a configuration layer for initializing the apparatus in accordance with user pre-defined parameters, comprising a timing parameters definer component that provides a number of time units to be elapsed before a static object is recognized; a pre-processing application layer for constructing a long term difference image between a currently captured video frame and a long term reference image, the long term reference image showing the background of the scene, and for constructing a short term difference image between the currently captured video frame and a short term reference image, the short term reference image showing the background of the scene and at least one static object within the scene, wherein the short term reference image is defined by having the least one static object as not belonging to the background of the scene and being stationary, that is, not moving, in the scene for a pre-determined period as provided by the timing parameters definer component; an object clustering application layer for generating at least one new or updated object from the long term difference image and the short term difference image; and a background updating application layer for updating the long term reference image and the short term reference image with background changes prior to processing of a new frame.