I am trying to draw circles using the python apps. My number of circles is dependent on the number of persons on screen. But apparently display_meta.circle_params is only allowing to draw 16 circles. Whenever the count, display_meta.num_circles, reaches 17 I get a list index out of range when I define py_nvosd_circle_params in the following code:
display_meta.num_circles = 0
for circle in circle_list:
display_meta.num_circles += 1
py_nvosd_circle_params = display_meta.circle_params[display_meta.num_circles-1]
py_nvosd_circle_params.xc = circle[0]
py_nvosd_circle_params.yc = circle[1]
py_nvosd_circle_params.radius = circle[2]
py_nvosd_circle_params.has_bg_color = 0
py_nvosd_circle_params.circle_color.red = 255.0
py_nvosd_circle_params.circle_color.blue = 0
py_nvosd_circle_params.circle_color.green = 0
py_nvosd_circle_params.circle_color.alpha = 1