NvOSD_CircleParams line thickness

• Hardware Platform (Jetson / GPU) Jetson Orin Nano
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only) 5.1.1-b56

Hi,
The NvOSD_CircleParams class does not include any “line width” parameter to adjust the overlay circle thickness. Somehow, the thickness seems to be taken from the last NvOSD_LineParams->line_width that was defined, as if there was some kind of cached parameter that would be used for the circle line thickness. Thus, it is currently not possible to decorrelate the circle thickness with the line thickness.

Example:

          NvOSD_CircleParams *circle_params = display_meta->circle_params;
//Adding below line sets the circle thickness to 5
  		  line_params[1].line_width = 5;
  		  circle_params[0].xc = c_x;
  		  circle_params[0].yc = c_y;
  		  circle_params[0].radius = r;
  		  circle_params[0].circle_color = (NvOSD_ColorParams){0.0, 1.0, 0, 0.5};
//If below line is omitted, circle [0] thickness will be 5. If below line is included, circle [0] thickness will be 2.
  		  line_params[1].line_width = 2;

Not sure if this is the intended behavior or a bug.
But anyhow, a workaround to have a different circle thickness than line thickness would be appreciated.

We will look into this issue and will be back once there is any progress.

Thanks your report.

FYI here is a workaround:
'# Create a single point line element e.g. x2 = x1 & y2 = y1, which will not appear
'# At the end of you script, change the line width of this element to the desired circle width
line_params[2].line_width = 5;

This is a bug about nvosd

If this bug is affecting you, there is a workaround like below.

g_object_set (G_OBJECT (nvosd), "process-mode", 1, NULL);

Use the GPU process mode

Thanks

The has been fixed in new version.

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