Initialize as list, i.e.

keypoints_list = []
…

Then append to list:

keypoints_list.append(corners)

And finally after the loop:

keypoints = np.vstack(keypoints_list)