A video based system and method for detecting and counting persons
traversing at least two areas being monitored. The method includes the
steps of initialization of at least one end unit, having at least a
camera, the camera producing images of at least a first area being
monitored and a second area being monitored, digitizing the images and
storing the digitized images in a non-volatile memory unit and a working
memory unit; detecting potential persons in the images; comparing the
digitized images of objects detected in the first area and second area
being monitored with digitized images stored in the working memory unit
to determine whether the detected object is a new figure in such area or
whether the detected object is a known figure that has remained within
such area and to determine that a figure which was not detected has left
such area; incrementing a counter for such area with an indication of the
number of persons that have passed through such area, and comparing the
number of persons passing through a first area with the number of persons
passing through a second area.