1 | initial version |
objp = np.array([[[(1595-new_K[0, 2])/new_K[0, 0], (922-new_K[1, 2])/new_K[1, 1], 0.]]])
rvec = np.array([[[0., 0., 0.]]])
tvec = np.array([[[0., 0., 0.]]])
imgpoints2, _ = cv2.fisheye.projectPoints(objp, rvec, tvec, K, D)
x = imgpoints2[0,0,0]
y = imgpoints2[0,0,1]