The invention relates to a multi-target tracking and counting method, in particular to a tracking and counting method combining FastReID and IoU advantages, which comprises the following steps of: simultaneously considering Re-ID and IoU information, tracking a plurality of targets in an original video, and carrying out
target line-crossing counting on the basis, so that a
pedestrian motion track can be accurately and quickly obtained. The method aims at improving the tracking accuracy and the counting precision under the condition that the efficiency is guaranteed, and is suitable for
pedestrian target tracking and counting in crowded scenes, scenes with fast moving targets and the like. According to the method, for each
image frame in a video, YOLOv5 is used for performing target detection, the advantages of Re-ID and IoU are combined, FastReID is innovatively introduced to obtain Re-ID features, a DeepSORT framework is optimized in combination with IoU matching, efficient and accurate multi-target tracking is realized, and finally, based on a tracker, a vector fork multiplication is introduced to perform
target line-crossing monitoring, so that the tracking accuracy is improved. And the reconnaissance of the dynamic change of the target is improved. The method is widely applicable to various application scenes such as automatic driving, intelligent monitoring and
behavior recognition.