Yolo和排序计数

Hi everyone I have issues with my Yolo sort counting code, my project was following from https://github.com/BenBenee/Traffic-Counting-with-YOLOv3-and-SORT/blob/master/main.py project:

tracker = Sort()
memory = {}
 .... codes 

 indexIDs = []
 previous = memory.copy()
 memory = {}

 for track in tracks:
        boxe.append([track[0], track[1], track[2], track[3]])
        indexIDs.append(int(track[4]))
        memory[indexIDs[-1]] = boxe[-1]

...codes

the memory attribute is always empty. Here is my repo https://github.com/samjxxxx/VehicleCounting

评论