Hello, I have a question on C3_W1_Lab 3. In this lab, there is a function:

draw_bounding_boxes_on_image(image, boxes, color, thickness, display_str_list).

My question is pertaining to the function call within this for loop:

draw_bounding_box_on_image(image, boxes[i, 1], boxes[i, 0], boxes[i, 3], boxes[i, 2], color[i], thickness, display_str_list[i])

draw_bounding_box_on_image() is defined with the following arguments:

draw_bounding_box_on_image(image, ymin, xmin, ymax, xmax, color, thickness, display_str, use_normalized_coordinates)

And boxes are defined as “a 2 dimensional numpy array of [N, 4]: (ymin, xmin, ymax, xmax)”.

It seems that if we are iterating over the N boxes, indexed with i, then

boxes[i, 0] = ymin,

boxes[i, 1] = xmin,

boxes[i, 2] = ymax,

boxes[i, 3] = xmax

Therefore, it seems that the for loop within draw_bounding_boxes_on_image should call:

draw_bounding_box_on_image(image, boxes[i, 0], boxes[i, 1], boxes[i, 2], boxes[i, 3], color[i], thickness, display_str_list[i]).

Can someone please tell me if my reasoning is correct, or if I am missing something? Any help would be greatly appreciated.

Thank you.