Enable tracking in Deepstream-app

I have enabled tracking in deepstream-app.

Tracker property is as follow.

[tracker]
enable=1
# For the case of NvDCF tracker, tracker-width and tracker-height must be a multiple of 32, respectively
tracker-width=640
tracker-height=384
#ll-lib-file=/opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_mot_iou.so
ll-lib-file=/opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_nvdcf.so
#ll-lib-file=/opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_mot_klt.so
#ll-config-file required for DCF/IOU only
ll-config-file=tracker_config.yml
#ll-config-file=iou_config.txt
gpu-id=0
#enable-batch-process and enable-past-frame applicable to DCF only
enable-batch-process=1
enable-past-frame=0
display-tracking-id=1

I have two issues.
Tracking ID is not displayed on each object.

Then in deepstream_app.c, there is write_kitti_track_output function.

I tried to print to console for all tracking data.
But nothing is printed to console.

static void
write_kitti_track_output (AppCtx * appCtx, NvDsBatchMeta * batch_meta)
{
  gchar bbox_file[1024] = { 0 };
  if (!appCtx->config.kitti_track_dir_path)
    return;
  for (NvDsMetaList * l_frame = batch_meta->frame_meta_list; l_frame != NULL;
      l_frame = l_frame->next) {
    NvDsFrameMeta *frame_meta = l_frame->data;
    guint stream_id = frame_meta->pad_index;  
    for (NvDsMetaList * l_obj = frame_meta->obj_meta_list; l_obj != NULL;
        l_obj = l_obj->next) {
      NvDsObjectMeta *obj = (NvDsObjectMeta *) l_obj->data;
      float left = obj->tracker_bbox_info.org_bbox_coords.left;
      float top = obj->tracker_bbox_info.org_bbox_coords.top;
      float right = left + obj->tracker_bbox_info.org_bbox_coords.width;
      float bottom = top + obj->tracker_bbox_info.org_bbox_coords.height;
      
      float confidence = obj->tracker_confidence;
      guint64 id = obj->object_id;
     
      g_print(obj->obj_label, id, left, top, right, bottom, confidence);
    }
   
  }
}

Why ID is not displayed on top of the box and tracking data are not printed?

write_kitti_track_output is working as it needs a folder.
But tracking id is not displayed on top of the box. But I can have tracking id from write_kitti_track_output.
How to display tracking id on top of bounding box?

Now I found tracking id. I need to enlarge specific stream.

1 Like

Great work, please create a new topic if you have any other issues

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.