fisheye.cpp:424: error: (-215) (K.depth() ...can anyone know the solution? [closed]
Hi,
I tried a OpenCV Aruco board project in Python; https://github.com/LongerVision/OpenC...
And I got the error below;
"map1, map2 = cv2.fisheye.initUndistortRectifyMap(camera_matrix, dist_coeffs, r, new_camera_matrix, image_size, cv2.CV_16SC2) cv2.error: C:\projects\opencv-python\opencv\modules\calib3d\src\fisheye.cpp:424: error: (-215) (K.depth() == CV_32F || K.depth() == CV_64F) && (D.depth() == CV_32F || D.depth() == CV_64F) in function cv::fisheye::initUndistortRectifyMap"
And this was the problematic line; map1, map2 = cv2.fisheye.initUndistortRectifyMap(camera_matrix, dist_coeffs, r, new_camera_matrix, image_size, cv2.CV_16SC2)
Anyone know solutions to fix it?
Thank you very much!
what are
camera_matrix, dist_coeffs
? it complains about the wrong type of those.Yes, this is the problem, but I don't know what is this files;Here load the files, but I just find one in the directory;
Thanks you!