def contour2points(contours):
    """
    Convert contours to points. (cnt2pts)

    :param contours: array of contours (cnt) ([[x,y]] only for openCV)
    :return:

    Example::

        contours = np.array([[[0, 0]], [[1, 0]]]) # contours
        points = contour2points(contours)
        print points # np.array([[0, 0], [1, 0]])
    """
    return contours.reshape(-1, 2)