NvOSD bounding box issue

Hello,

I’m using the Dsexample plugin in my pipeline, and most of the time bounding boxes get rendred as such:

When I restart the application there is a chance that they get rendred normally but it’s like a coin flip. Is there anyway I can fix this problem?

• Hardware Platform Jetson Nano 4GB
• DeepStream 6.0
• JetPack Version 4.6
• TensorRT 8.0.1
• Issue Type: bugs
• How to reproduce the issue ? Add Dsexample plugin on top of the “deepstream-test1” C/C++ sample app with blur-objects ON, and try to restart the application until the bug occurs

Can you share the picture when it is normal?

Yes, this is is how it’s supposed to look:

Do you set any background color for the object?

Yes I’m setting the background color as orange, this is how I change the colors of the bounding boxes:

static GstPadProbeReturn
osd_sink_pad_buffer_probe (GstPad * pad, GstPadProbeInfo * info,
    gpointer u_data)
{
...
      /* Now set the offsets where the string should appear */
      txt_params->x_offset = obj_meta->rect_params.left;
      txt_params->y_offset = obj_meta->rect_params.top - 24;

      /* Font , font-color and font-size */
      txt_params->font_params.font_name = "Serif";
      txt_params->font_params.font_size = 10;
      txt_params->font_params.font_color.red = 1.0;
      txt_params->font_params.font_color.green = 1.0;
      txt_params->font_params.font_color.blue = 1.0;
      txt_params->font_params.font_color.alpha = 1.0;

      /* Text background color */
      txt_params->set_bg_clr = 1;
      txt_params->text_bg_clr.red = 0.8976;
      txt_params->text_bg_clr.green = 0.4646;
      txt_params->text_bg_clr.blue = 0.0787;
      txt_params->text_bg_clr.alpha = 1.0;
...
}