def draw_outline(img, fg_color, outline_width):
    '\n    img に対して外枠線を引く\n\n    Parameters\n    ----------\n    img : array_like\n        image data.\n    fg_color : array_like\n        color\n    outline_width : int\n        thickness.\n\n    Returns\n    -------\n    array_like\n        image data with line.\n\n    Examples\n    --------\n    >>> img = np.zeros((1080, 1920, 3))\n    >>> color = (940, 940, 940)\n    >>> thickness = 2\n    >>> draw_outline(img, color, thickness)\n    '
    width = img.shape[1]
    height = img.shape[0]
    pt1 = (0, 0)
    pt2 = (width, 0)
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
    pt1 = (0, 0)
    pt2 = (0, height)
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
    pt1 = ((width - outline_width), 0)
    pt2 = ((width - outline_width), height)
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
    pt1 = (0, (height - outline_width))
    pt2 = (width, (height - outline_width))
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
img に対して外枠線を引く

Parameters
----------
img : array_like
    image data.
fg_color : array_like
    color
outline_width : int
    thickness.

Returns
-------
array_like
    image data with line.

Examples
--------
>>> img = np.zeros((1080, 1920, 3))
>>> color = (940, 940, 940)
>>> thickness = 2
>>> draw_outline(img, color, thickness)
def draw_outline(img, fg_color, outline_width):
    '\n    img に対して外枠線を引く\n\n    Parameters\n    ----------\n    img : array_like\n        image data.\n    fg_color : array_like\n        color\n    outline_width : int\n        thickness.\n\n    Returns\n    -------\n    array_like\n        image data with line.\n\n    Examples\n    --------\n    >>> img = np.zeros((1080, 1920, 3))\n    >>> color = (940, 940, 940)\n    >>> thickness = 2\n    >>> draw_outline(img, color, thickness)\n    '
    width = img.shape[1]
    height = img.shape[0]
    pt1 = (0, 0)
    pt2 = (width, 0)
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
    pt1 = (0, 0)
    pt2 = (0, height)
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
    pt1 = ((width - outline_width), 0)
    pt2 = ((width - outline_width), height)
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)
    pt1 = (0, (height - outline_width))
    pt2 = (width, (height - outline_width))
    draw_straight_line(img, pt1, pt2, fg_color, outline_width)