Deepstream 5.1 unable to draw circles

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jeston Xavier AGX
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5.1
• TensorRT Version 7.1.3.0
• Issue Type( questions, new requirements, bugs) question or bug
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
I seem to not be able to draw circles in a frame whatever I do, with the same code it draws all other shapes but circles, so I wonder if there is a bug or I did something wrong.

I am using python 3.6 which comes with the jetpack image and deepstream 5.2, augmentating each frame.

This is the code I am using to draw a circle always in the same place.
Which does not work, so I am wondering if there is some bug and someone is able to reproduce this issue or not. Also a small feature or info request, what happens if I do not put has_bg_color to False? Can I draw a circle outline without the background?

# Acquiring a display meta object. The memory ownership remains in
# the C code so downstream plugins can still access it. Otherwise
# the garbage collector will claim it when this probe function exits.
display_meta = pyds.nvds_acquire_display_meta_from_pool(batch_meta)

display_meta.num_circles = 1
py_nvosd_circle_params = display_meta.circle_params[0]
py_nvosd_circle_params.radius = 400
py_nvosd_circle_params.has_bg_color = True
py_nvosd_circle_params.bg_color.set(0.5, 0.5, 0.5, 0.5)
py_nvosd_circle_params.xc = 500
py_nvosd_circle_params.yc = 500

one small note, if I do

pyds.nvds_add_display_meta_to_frame(frame_meta, display_meta)

nothing changes, I am always able to draw other shapes but circles.

Thanks for the help

Sorry for late response, will check it later.

Did you mean you can not draw circles with filled background color or you even can not draw circles?

I am not able to draw circles at all.

Can I also ask, in the case of circles without background, can the line width be changed? If not it would be very useful if it could be done in future releases

I tried with c++ version, it draw well. will try python version and update then. we did not support circle line width change now.

For python version, need to set circle color, like
py_nvosd_circle_params.circle_color.set(0.5,0.5,0.5,1)

You are right, seems like if circle_color is not set nothing is drawn.

Thank you very much, sorry for the clumsiness!

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