def points_at_corner_index(contour, index):
 return [contour[(i + 1)] for i in index]

def points_at_corner_index ( contour , index ) : return [ contour [ ( i + 1 ) ] for i in index ]
contour is array shape=(number of points .