Method for counting people stream based on security and protection video image

2014 
The invention relates to a method for counting passengers taking a bus based on video stream processing and discloses a method for counting a people stream based on a security and protection video image. The method comprises the steps that 1) an original image is preprocessed; 2) a background model is established through the difference algorithm; 3) according to a background image, a foreground is obtained through differentiation and morphological processing is conducted on the foreground so that a moving object zone can be obtained; 4) the size of the moving object zone is judged, if the moving object zone is overlarge, a high-density passenger stream state is considered, a plurality of head zone moving objects are determined through the method that head features are matched, each head zone moving object is tracked so that the number of people getting on the bus and getting off the bus can be obtained through counting, and otherwise, the step 5) is conducted; 5), complementation is conducted on the moving object zone obtained through the original image, so that the background image is updated; 6) the moving object zone is divided, the divided moving objects are tacked, and whether the moving objects get on the bus or gets off the bus is determined according to the sequence of collision between the upper boundaries and a counting line and collision between the lower boundaries and the counting line of the moving objects, so that the passenger stream is counted.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []