camera_matrix = np.array([[1300.0, 0.0, 600.0], [0.0, 1300.0, 480.0], [0.0,
    0.0, 1.0]], dtype=np.float32)
dist_coeffs = np.array([-2.4 - 1, 0.095, -0.0004, 8.9e-05, 0.0], dtype=np.
    float32)
test = np.zeros((10, 1, 2), dtype=np.float32)
xy_undistorted = cv2.undistortPoints(test, camera_matrix, dist_coeffs)
print(xy_undistorted)
How to format xy points for undistortPoints with the python cv2 api?