The statistical model for automatic flow recognition is significant for public place management. However, the current model suffers from insufficient statistical accuracy and low lightweight. Therefore, in this study, the structure of the lightweight object detection model "You Only Live Once v3" is optimized, and the "Deep Simple Online Real-Time Tracking" algorithm with the "Person Re-Identification" module is designed, so as to construct a statistical model for people flow recognition. The results showed that the median PersonAP of the designed model was 94.2%, the total detection time was 216 ms, the Rank-1 and Rank-10 were 87.2% and 98.6%, respectively, and the maximum occupied memory of the whole test set was 2.57 MB, which was better than all comparison models. The results indicate that the intelligent identification statistical model for public crowd flow obtained through this design and training has higher statistical accuracy, less computational resource consumption, and faster computing speed. This has certain application space in the management and guidance of crowd flow in public places.