The invention discloses a method and a
system based on binocular stereoscopic vision for passenger flow density
estimation. The
system comprises binocular parallel cameras, a DSP (
Digital Signal Processor), a communication module, a
video output module and the like, and the
system is adopted for estimating passenger flow density. The method comprises the following steps: (1) calibrating a left camera and a right camera to obtain the internal and external parameters of the left camera and the right camera; calculating the accurate
principal point difference of the left camera and the right camera; (2) collecting a left image and a right image in real time and carrying out position correction, and adopting a self-adapting window
stereo matching method to obtain a current frame
parallax error image; (3) splitting a foreground
human body target to obtain a binary foreground
human body target image; (4) generating a dimensional mapping image of the foreground
human body target; (5) calculating the degree of congestion, and obtaining the density
estimation through the non-
linear relationship between the degree of congestion and the number of people. The method is independent of the influences of scene illumination change, shadow, perspective effect and blocking, and the system has the characteristics that the equipment is simple and the accuracy rate of the density
estimation is high.