def __convert_annotations_yolo_to_opencv(image_width, image_height, all_points
    ):
    """
    0 centerX centerY width height -> 0 x1 y1 x2 y2
    converts yolo style annotations to opencv image coordinates so you can draw rectangles
    it also returns label of the image as first element of the list
    """
    try:
        opencv_points = []
        for points in all_points:
            mx = image_width * float(points[1])
            my = image_height * float(points[2])
            w = image_width * float(points[3])
            h = image_height * float(points[4])
            top_left_y = int(my - h / 2)
            top_left_x = int(mx - w / 2)
            bottom_rigth_y = int(my + h / 2)
            bottom_right_x = int(mx + w / 2)
            opencv_points.append((int(points[0]), top_left_x, top_left_y,
                bottom_right_x, bottom_rigth_y))
    except IndexError:
        pass
    return opencv_points
