import cv2 import numpy as np img=cv2.imread("C:/Users/humaolin/PycharmProjects/pythonProject/camera_cal/calibration1.jpg") gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) objpoints=[] imgpoints=[] img_size=gray.shape[1::-1] ret, corners = cv2.findChessboardCorners(gray, (9,6),None) ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(objpoints, imgpoints, img_size,None,None) undistort_img = cv2.undistort(img, mtx, dist, None, mtx) cv2.imshow("gq",undistort_img) cv2.waitKey()``` 之上就是我的程式码 下边为出错信息 C:UsershumaolinPycharmProjectspythonProjectvenvScriptspython.exe C:/Users/humaolin/PycharmProjects/pythonProject/123.py Traceback (most recent call last): File "C:/Users/humaolin/PycharmProjects/pythonProject/123.py", line 12, in