deshwalmahesh / yolov7-deepsort-tracking

Modular and ready to deploy code to detect and track videos using YOLO-v7 and DeepSORT
158 stars 65 forks source link

Save a txt or xls file of the resulted tracking #7

Closed Sarouch closed 2 years ago

Sarouch commented 2 years ago

Hello, Thank you for this repo ! As the code is wraped, could you tell me where can I save the .txt file (or xls file) of all the information I obtained from the tracking (selecting verbose 2) ?

deshwalmahesh commented 2 years ago

Sure. So this information is being generated from bridge_wrapper.py. What you can do is to find all the print statements starting from Line 87: While True:, and instead of printing it, you could simply save whatever information is there.

For example, this Tracker ID: 11674, Class: ..... is coming from Line 157-158.

Sarouch commented 2 years ago

Sure. So this information is being generated from bridge_wrapper.py. What you can do is to find all the print statements starting from Line 87: While True:, and instead of printing it, you could simply save whatever information is there.

For example, this Tracker ID: 11674, Class: ..... is coming from Line 157-158.

Yes this is what I did thank you.