Enable tracking in Deepstream-app

I have enabled tracking in deepstream-app.

Tracker property is as follow.

# For the case of NvDCF tracker, tracker-width and tracker-height must be a multiple of 32, respectively
#ll-config-file required for DCF/IOU only
#enable-batch-process and enable-past-frame applicable to DCF only

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)
  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.

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.