The invention discloses a vision-based density traffic
vehicle counting and
traffic flow calculation method and
system. The vision-based density traffic
vehicle counting and
traffic flow calculation method comprises the steps of zooming an acquired continuous frame image to obtain a
pyramid characteristic map, inputting the
pyramid characteristic map to a trained
pyramid-YOLO network to detect vehicle targets with different scales so as to obtain a boundary frame with the vehicle targets; presetting a line-crossing probability function, judging probability of each target vehicle passing through a counting line in an image with the vehicle targets, and sieving a traced vehicle according to a probability value; performing tracking track
processing on the traced vehicle according to a limitation-based multi-target tracing
algorithm, and counting the vehicles passing through the counting line according to an obtained track set; and calculating to obtain vehicle flow
traffic volume, speed and density according to the obtained
vehicle counting result. By the vision-based density traffic vehicle counting and
traffic flow calculation method, the problem of a dense
traffic scene is solved,a
system on the basis of
vehicle detection, tracing, counting and parameter
estimation is proposed,
vehicle detection is accurately and rapidly performed, the dense vehicle is accurately traced, and flow
estimation is achieved.