Skip to content Skip to sidebar Skip to footer

Camera Calibration (cv.calibratecamera And Cv.initundistortmap)

The cv.InitUndistortMap opencv function is not working. I get the intrinsic and distortion matrix, but I can not use this values to fix my image. I get this error: cv.InitUndistort

Solution 1:

I couldn't run the calibration function, but the error, i think, is that you're replacing the value of the variable camera_matrix here: camera_matrix , dist_coefs = calibracion(). camera_matrix needs to be a CvMat like here: camera_matrix = cv.CreateMat(3, 3, cv.CV_32FC1). If you comment this line of code: camera_matrix , dist_coefs = calibracion() you won't have that error message displayed again.

In a nut shell: fix the calibration function

Post a Comment for "Camera Calibration (cv.calibratecamera And Cv.initundistortmap)"