docs: def draw_segments(image, segments, color=(255, 0, 0), line_width=1):
      """draws segments on image"""
      for segment in segments:
          x, y, w, h = segment
          cv2.rectangle(image, (x, y), (x + w, y + h), color, line_width)