Can I draw lines more than 16?

Hi,

I want to draw lines in image.

So, I set line params in display meta, but i know MAX_ELEMENTS_IN_DISPLAY_META is set 16.

How can I draw lines more than 16?

In my code,

NvDsBatchMeta *batch_meta = frame_meta->base_meta.batch_meta;
NvDsDisplayMeta *display_meta = nvds_acquire_display_meta_from_pool(batch_meta);

display_meta->line_params[index].x1 = 0;
display_meta->line_params[index].y1 = 0;
...
...
display_meta->num_lines = 16;

nvds_add_display_meta_to_frame(frame_meta, display_meta);

Is this Right? How can I do?

Thanks.

Hi gusghrlrl123,

Yes, we can draw more than 16 lines. For one given display meta we can draw max 16 lines.
Additional lines (more than 16) can be drawn by acquiring one more display meta using nvds_acquire_display_meta_from_pool() and then fill line metadata.