Nvosd_draw_circles() cannot work

An error occurred while using nvosd_draw_circles() on jetson tx2(R28 (release), REVISION: 2.1) :
libnvosd (1720):(ERROR) : ERROR: Unsupported color format
What’s the reason?

Hi,
The buffer format has to be NvBufferColorFormat_ABGR32 or NvBufferColorFormat_XRGB32

But why nvosd_draw_rectangles() can work with V4L2_PIX_FMT_YUV444M format?

Hi,
For using nvosd APIs, we suggest you use NvBufferColorFormat_ABGR32, or NvBufferColorFormat_XRGB32.

OKey,thanks.

Hi,

I am using L4T Multimedia API Reference: V4L2 Camera with CUDA example for capturing and encoding. MJPEG encoding is selected. I want to draw the rectangle in the renderer using nvosd. The problem is it says unsupported color format. Is there any workaround? I want to keep the MJPEC ending.

Thanks.

Hi @ghmdeepak
For clearness, please create a new topic for the query. Thanks for the help.

hi @DaneLLL,

Actually, it is working now with small fix.
I was trying to use nvosd_draw_rectangles function from L4T Multimedia API Reference: NvOSD Library. In order to draw rectangle we have to select mode = MODE_HW. Before I was using MODE_CPU which gives error: (ERROR) : ERROR: Unsupported color format.

1 Like