def box_to_point4(boxes):
    """
    Convert boxes to its corner points.

    Args:
        boxes: nx4

    Returns:
        (nx4)x2
    """
    b = boxes[:, [0, 1, 2, 3, 0, 3, 2, 1]]
    b = b.reshape((-1, 2))
    return b

    Convert boxes to its corner points.

    Args:
        boxes: nx4

    Returns:
        (nx4)x2
    
examples/FasterRCNN/common.py