With the rapid economic development and high concentration of urban population, people’s income level and quality of life continue to improve, resulting in more and more crowded scenes caused by people going out. Especially in urban commercial centers, transportation hubs, sports venues during important events, tourist attractions, etc., crowd gatherings occur frequently. However, accidents involving crowd gatherings in public places occur frequently, causing heavy casualties and property losses. Therefore, for crowd recognition, this paper proposes a new method to accurately estimate the number of dense crowds. In this method, a density map with accurate pedestrian locations is first generated using the focal inverse distance transform and used as ground truth labels for network training. Then, a multi-scale feature fusion algorithm based on residual network is designed, combining spatial and channel attention mechanisms to improve the accuracy and stability of crowd density estimation. In dense crowds, the phenomenon of overlapping and occlusion of people is very common and serious, making it difficult for existing pedestrian detection methods to distinguish each individual and accurately count the flow of people. To solve this problem, this paper proposes a density map-based method that uses a local maximum detection strategy and a K-nearest neighbor algorithm to convert the density map into the corresponding dense head bounding box. This method can effectively reduce the impact of occlusion and improve the accuracy of people counting. In order to further improve the estimation accuracy, a pattern recognition density peak clustering algorithm is introduced to study the clustered crowds. By treating the head bounding box as an element point, the distance between each element point is calculated, and the density of each point is calculated. Then perform clustering to find the cluster center with the highest density in each class. Finally, by comparing the density of each cluster center with the corresponding density threshold and adopting the corresponding decision-making method, the accuracy of people counting is further improved.
Read full abstract