X-AnyLabeling icon indicating copy to clipboard operation
X-AnyLabeling copied to clipboard

MOT postprocessing of drawing frames of trackings and thereby a video

Open shuyueW1991 opened this issue 1 year ago • 3 comments

I really appreciate the work of X-AnyLabeling, which is MARVELLOUS. However, i find the postprocessing of MOT detection and tracking video should be added. Therefore I write a small snippet so that after MOT operation, you can run this script and you can get a movie.mp4 registering trackings of objects.

The code is here:

A capture of such image is like this: newframe_602

There are two editable parts in the script: The first input is the folder path of the frames and the csv filer path (which is default under folder <MOT>). These can be edited under the line if __name == '__main__': The second is at the beginning of code, i.e. index2color dict, where you should assign at least the index-color pairs as many as the most id one frame can get. And there are still some comments that you can reference.

Anyway, I hope everyone encountering same problem can use it. Cheers.

shuyueW1991 avatar Apr 11 '24 05:04 shuyueW1991

添加了多目标跟踪视频的后处理 , 写了一个小程序使您可以在 MOT 操作之后运行此脚本,并获得记录对象轨迹的 movie.mp4

shuyueW1991 avatar Apr 11 '24 06:04 shuyueW1991

添加了多目标跟踪视频的后处理 , 写了一个小程序使您可以在 MOT 操作之后运行此脚本,并获得记录对象轨迹的 movie.mp4

Thank you for your valuable contribution to X-AnyLabeling!

CVHub520 avatar Apr 23 '24 06:04 CVHub520

#562

CVHub520 avatar Aug 08 '24 16:08 CVHub520

#602

CVHub520 avatar Sep 03 '24 14:09 CVHub520