• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 6.0
Hello i’m trying to add more than 16 circles, How do i add another display_meta , i tried to implement it using this code below but it didnt work any idea how to fix that ?
NvDsDisplayMeta *display_meta =
nvds_acquire_display_meta_from_pool (batch_meta);
NvOSD_CircleParams *circle_params = display_meta->circle_params;
for ( int j=0; j < row_count_aux ; j++){
circle_params[j].xc = data[j][0] / scaleW ;
circle_params[j].yc = data[j][1] / scaleH ;
circle_params[j].radius = 15;
circle_params[j].has_bg_color = True;
circle_params[j].bg_color = (NvOSD_ColorParams){0.0, 1.0, 0.0, 1.0};
if (detection_occ[j] > 0 ){
circle_params[j].circle_color = (NvOSD_ColorParams){1.0, 0.0, 0.0, 1.0};
}
else {
circle_params[j].circle_color = (NvOSD_ColorParams){0.0, 1.0, 0.0, 1.0};
nb_free_spots++;
}
display_meta->num_circles++;
}
nvds_add_display_meta_to_frame (frame_meta, display_meta);
if (max_circles_flags)
{
NvDsDisplayMeta *display_meta =
nvds_acquire_display_meta_from_pool (batch_meta);
for ( int j=0; j < rest_circles ; j++){
circle_params[j].xc = data[15+j][0] / scaleW ;
circle_params[j].yc = data[15+j][1] / scaleH ;
circle_params[j].radius = 15;
circle_params[j].has_bg_color = True;
circle_params[j].bg_color = (NvOSD_ColorParams){0.0, 1.0, 0.0, 1.0};
if (detection_occ[j] > 0 ){
circle_params[j].circle_color = (NvOSD_ColorParams){1.0, 0.0, 0.0, 1.0};
}
else {
circle_params[j].circle_color = (NvOSD_ColorParams){0.0, 1.0, 0.0, 1.0};
nb_free_spots++;
}
display_meta->num_circles++;
}
nvds_add_display_meta_to_frame (frame_meta, display_meta);