Commit 32737df1 authored by flp's avatar flp

Print found calibration data

parent b6ce4a52
...@@ -91,9 +91,9 @@ if __name__ == '__main__': ...@@ -91,9 +91,9 @@ if __name__ == '__main__':
# calculate camera distortion # calculate camera distortion
rms, camera_matrix, dist_coefs, rvecs, tvecs = cv2.calibrateCamera(obj_points, img_points, (w, h), None, None) rms, camera_matrix, dist_coefs, rvecs, tvecs = cv2.calibrateCamera(obj_points, img_points, (w, h), None, None)
# print("RMS:", rms) print("\nRMS:", rms)
# print("camera matrix:\n", camera_matrix) print("camera matrix:\n", camera_matrix)
# print("distortion coefficients: ", dist_coefs.ravel()) print("distortion coefficients: ", dist_coefs.ravel())
# undistort the image with the calibration # undistort the image with the calibration
print('') print('')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment