我不知道,为什么这个 openCV 函数给了我 None 的值,有什么想法吗?
while True:
retval,frame = capture.read()
h, w = frame.shape[:2]
gray = cv2.cvtColor(frame, cv2.cv.CV_BGR2GRAY)
found, points = cv2.findChessboardCorners(gray, p_size)
if found!=0:
frame_count = frame_count + 1
objpoints.append(objp)
corners2 = cv2.cornerSubPix(gray, points, (11, 11), (-1,1), criteria)
imgpoints.append(corners2) </i>