code: def add_rect(img, box, color=None, thickness=1):
      
      if color is None:
          color = COL_GRAY
  
      box = box.to_int()
      cv.rectangle(img, box.top_left(), box.bottom_right(), color, thickness)
docs: Draws a bounding box inside the image.
  
      :param img: Input image
      :param box: Box object that defines the bounding box.
      :param color: Color of the box
      :param thickness: Thickness of line
      :return: Rectangle added image