The invention discloses a
traffic flow statistic and violation detection method based on surveillance
video processing. The method comprises the steps of obtaining a video source, reading a frame of image, judging if the current frame is a first frame, utilizing difference information of corresponding pixel points of the current frame and the previous frame to update foreground and background images if the current frame is not the first frame, utilizing the foreground and background images to extract an interest area
MASK of the current frame, calculating integral images and integrated square images of the current frame, detecting in the interest area
MASK of the current frame if a plate number target exists according to the obtained integral images and integrated square images of the current frame and utilizing an
Adaboost algorithm, storing position information of the detected plate number target in a
list TmpList, judging if the temporary target
list TmpList is empty, judging if a tracking target sequence Track-
List is empty if the temporary target
list TmpList is empty, and adding the detected target in an ObjList into the Track-
List if the tracking target sequence Track-
List is empty. By means of the method, crossing
traffic flow can be counted precisely, and if a vehicle target breaks the rule is judged combining indication of
traffic signal lamps.