CenterTrack icon indicating copy to clipboard operation
CenterTrack copied to clipboard

How to track only one category in coco80 datasets without training myself?

Open dongziqi001 opened this issue 4 years ago • 5 comments

This code is great!! I have ran the demo to track other objects(cars) in videos,which is one of the types of category in coco. but I have two questions. 1.How can I get the video tracking results? 2.How to track only one category in coco80 datasets without training myself? Thanks!!!

dongziqi001 avatar May 03 '20 03:05 dongziqi001

  1. When you call ret = detector.run(img)['results'], ret will be a list dict: [{'bbox': [x1, y1, x2, y2], 'tracking_id': id, ...}]. You can use this to render your output video.
  2. In ret above, simply filter out the item with 'category_id' != 2. The category_id list is here.

xingyizhou avatar May 05 '20 16:05 xingyizhou

Thank you for your kindly help. 1.After I got list dict: [{'bbox': [x1, y1, x2, y2], 'tracking_id': id, ...}],How can I convert it as output.mp4?

  1. I modified "results" in detector.py and filtered car category. Thanks! @xingyizhou

dongziqi001 avatar May 17 '20 02:05 dongziqi001

@dongziqi001 I have the same question with you , Have you solved the problem of convert it as output.mp4? Thanks!

Veronica1997 avatar Jun 13 '20 01:06 Veronica1997

Thank you for your kindly help. 1.After I got list dict: [{'bbox': [x1, y1, x2, y2], 'tracking_id': id, ...}],How can I convert it as output.mp4?

  1. I modified "results" in detector.py and filtered car category. Thanks! @xingyizhou

hi, I got the same problem,I wonder how do you modified "results" in detector.py, would you share with me please?

ZhinanCai avatar Oct 06 '20 11:10 ZhinanCai

Thank you for your kindly help. 1.After I got list dict: [{'bbox': [x1, y1, x2, y2], 'tracking_id': id, ...}],How can I convert it as output.mp4?

  1. I modified "results" in detector.py and filtered car category. Thanks! @xingyizhou

hi, I got the same problem,I wonder how do you modified "results" in detector.py, would you share with me please?

have u solved this problem? can u tell me how to get it

dodeokwangyooo avatar Sep 10 '21 11:09 dodeokwangyooo