The invention discloses a
traffic flow visual inspection method.
Traffic scene image sequences are acquired through electronic monitoring in real time, a
traffic scene weather condition environment is sensed by an illumination intensity sensor, a temperature sensor and a
humidity sensor,
daytime / night, fine day / rainy day / normal day and other weather conditions are judged, and illumination and shadow pretreatment is performed correspondingly. Running distances are restrained according to traffic rules, meanwhile lane departure phenomenon caused by
overtaking and passing-by in the actual vehicle running is considered, double virtual lines are arranged at the same horizontal positions of all of lanes within a monitoring range in images, vehicle positions are quickly detected and positioned by utilizing double-
template matching convolution in a double virtual line detecting region, 'one-to-more' and 'more-to-one' phenomena are eliminated, and wrong detection and wrong judgment are decreased. Intervals of vehicles in the horizontal direction and the vertical direction are judged and identified, vehicle target positions are restrained according to the
horizontal and vertical position information of the vehicles and correctly positioned, normally running vehicles are counted,
traffic flow statistic is performed, and the problem of inaccurate
traffic flow counting is solved. The traffic flow
visual inspection method has high detecting accuracy and good anti-interference performance and real-timeliness.