Cannot get good camera calibration

how do you call undistortPoints? make the issue reproducible.

assertion comes from