1. An optical system, comprising: a camera; a processor having video analysis application software, the video analysis application software being operable to: estimate a background reference frame for representing a background; estimate geometric parameters for representing a scale variation of objects in a given frame; obtain a change detection map for distinguishing the background from the objects in the given frame; and combine the change detection map with the geometric parameters to determine a measure of congestion of the given frame.