Multitarget-tracker icon indicating copy to clipboard operation
Multitarget-tracker copied to clipboard

Output coordinates of tracking lines

Open AlexHmann opened this issue 5 years ago • 6 comments

Hi guys!

I was wondering if there is a way that the program saves the tracking coordinates in a text file (together with the frame IDs). I couldn't find that option among the parameters.

Also, I am a bit confused: where do I "fine-tune the TrackerSettings"? Sorry, this may be a noob question:D But I don't understand where to apply these settings. Is it just a normal command line argument, or do I have to go into the code?

Great job, I really like the program! (I just have to understand better how to set the parameters) Alex

AlexHmann avatar Nov 16 '20 23:11 AlexHmann

Hi!

  1. Save trajectories to csv file: https://github.com/Smorodov/Multitarget-tracker/pull/261 The latest parameter sets a result csv file: MultitargetTracker.exe pedestrian-01.mp4 -e=5 -a=0 -g=0 -r=res.csv Row: <frame_number>,<object type>,<top>,<left>,<width>,<height>,<confidence>

  2. TrackerSetting You can set in source code in method InitTracker: https://github.com/Smorodov/Multitarget-tracker/blob/master/example/examples.h#L115 https://github.com/Smorodov/Multitarget-tracker/blob/master/example/examples.h#L259 ... For each example individual TrackerSettings. And I can make config file with all parameters. Then you can fill in all the parameters in the config file and specify it as a command line parameter. Or like now - in source code. How do you think?

Nuzhny007 avatar Nov 18 '20 03:11 Nuzhny007

Hi Sergey,

  1. Perfect! I am mainly using the software based on background substraction (without YOLO, etc.), so "object type" would have to be just ID1, ID2, etc.
  2. I think a config file would be awesome! I want to run the program from command line with varying parameter settings (and see which combination of settings gives the best result). Hence, changing the source code for each parameter would be a pain

AlexHmann avatar Nov 18 '20 09:11 AlexHmann

@Nuzhny007 , can I help with a json with the sets of parameters that covers the InitTracker method ? I will do a pull request for you to verify it.

guevaralb avatar Nov 19 '20 03:11 guevaralb

Yes, if you have some time. It will be cool. I'm started this task with simple ini file but json is better choice

Nuzhny007 avatar Nov 19 '20 04:11 Nuzhny007

@guevaralb Hi! My vision: https://github.com/Smorodov/Multitarget-tracker/pull/262 Do you have now some code with json or I can merge version with ini file?

Nuzhny007 avatar Nov 19 '20 20:11 Nuzhny007

Merged

Nuzhny007 avatar Nov 20 '20 14:11 Nuzhny007