(coord)
return [x1, y1, x2, y2, x3, y3, x4, y4]
:param coord:[major_axis_radius, minor_axis_radius, angle, center_x, center_y, detection_score]
    :return:
:param coord:[major_axis_radius, minor_axis_radius, angle, center_x, center_y, detection_score]
    :return:
: param coord : [ major_axis_radius minor_axis_radius angle center_x center_y detection_score ] : return :
def convert_coord(coord):
    """
    :param coord:[major_axis_radius, minor_axis_radius, angle, center_x, center_y, detection_score]
    :return:
    """
    x_c = coord[3]
    y_c = coord[4]
    w = coord[0]*2
    h = coord[1]*2
    theta = -(coord[2] / math.pi * 180)
    up_l = (-w/2, h/2)
    down_l = (-w/2, -h/2)
    up_r = (w/2, h/2)
    down_r = (w/2, -h/2)

    theta = -theta

    x1 = math.cos(theta/180*math.pi) * up_l[0] - math.sin(theta/180*math.pi) * up_l[1] + x_c
    y1 = math.sin(theta/180*math.pi) * up_l[0] + math.cos(theta/180*math.pi) * up_l[1] + y_c

    x2 = math.cos(theta / 180 * math.pi) * down_l[0] - math.sin(theta / 180 * math.pi) * down_l[1] + x_c
    y2 = math.sin(theta / 180 * math.pi) * down_l[0] + math.cos(theta / 180 * math.pi) * down_l[1] + y_c

    x3 = math.cos(theta / 180 * math.pi) * up_r[0] - math.sin(theta / 180 * math.pi) * up_r[1] + x_c
    y3 = math.sin(theta / 180 * math.pi) * up_r[0] + math.cos(theta / 180 * math.pi) * up_r[1] + y_c

    x4 = math.cos(theta / 180 * math.pi) * down_r[0] - math.sin(theta / 180 * math.pi) * down_r[1] + x_c
    y4 = math.sin(theta / 180 * math.pi) * down_r[0] + math.cos(theta / 180 * math.pi) * down_r[1] + y_c

    return [x1, y1, x2, y2, x3, y3, x4, y4]
def convert_coord ( coord ) : x_c = coord [ 3 ] y_c = coord [ 4 ] w = coord [ 0 ] * 2 h = coord [ 1 ] * 2 theta = - ( coord [ 2 ] / math . pi * 180 ) up_l = ( - w / 2 , h / 2 ) down_l = ( - w / 2 , - h / 2 ) up_r = ( w / 2 , h / 2 ) down_r = ( w / 2 , - h / 2 ) theta = - theta x1 = math . cos ( theta / 180 * math . pi ) * up_l [ 0 ] - math . sin ( theta / 180 * math . pi ) * up_l [ 1 ] + x_c y1 = math . sin ( theta / 180 * math . pi ) * up_l [ 0 ] + math . cos ( theta / 180 * math . pi ) * up_l [ 1 ] + y_c x2 = math . cos ( theta / 180 * math . pi ) * down_l [ 0 ] - math . sin ( theta / 180 * math . pi ) * down_l [ 1 ] + x_c y2 = math . sin ( theta / 180 * math . pi ) * down_l [ 0 ] + math . cos ( theta / 180 * math . pi ) * down_l [ 1 ] + y_c x3 = math . cos ( theta / 180 * math . pi ) * up_r [ 0 ] - math . sin ( theta / 180 * math . pi ) * up_r [ 1 ] + x_c y3 = math . sin ( theta / 180 * math . pi ) * up_r [ 0 ] + math . cos ( theta / 180 * math . pi ) * up_r [ 1 ] + y_c x4 = math . cos ( theta / 180 * math . pi ) * down_r [ 0 ] - math . sin ( theta / 180 * math . pi ) * down_r [ 1 ] + x_c y4 = math . sin ( theta / 180 * math . pi ) * down_r [ 0 ] + math . cos ( theta / 180 * math . pi ) * down_r [ 1 ] + y_c return [ x1 , y1 , x2 , y2 , x3 , y3 , x4 , y4 ]