The invention discloses a statistical method based on vehicle tracks, which relates to the field of traffic detection. The invention includes the selection and tracking of stable feature points, clustering is performed by using the relationship changes between the relative distances of the stable feature points in the real space trajectory at the same moment, and when the variance of the relative distance at the same moment is less than the preset threshold, no update The count value of the vehicle counter, when the variance of the relative distance at the same time is greater than a preset threshold, the count value of the vehicle counter is increased by one. The present invention extracts the vehicle trajectory in the captured road video image, processes the vehicle trajectory therein, obtains the relative distance of the trajectory at the same time, and determines the number of vehicles in the video image according to the variation relationship of the relative distance at the same time, so that In the process of counting the number of vehicles, the influence of the environment and the limitation that only a single vehicle type can be counted are avoided, and the statistical precision and efficiency of the number of vehicles are improved.