diff --git a/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.rst b/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.rst index abf0411775..4f0e7cc067 100644 --- a/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.rst +++ b/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.rst @@ -110,11 +110,11 @@ Once we find the corners, we can increase their accuracy using **cv2.cornerSubPi if ret == True: objpoints.append(objp) - corners2 = cv2.cornerSubPix(gray,corners,(11,11),(-1,-1),criteria) - imgpoints.append(corners2) + cv2.cornerSubPix(gray,corners,(11,11),(-1,-1),criteria) + imgpoints.append(corners) # Draw and display the corners - img = cv2.drawChessboardCorners(img, (7,6), corners2,ret) + cv2.drawChessboardCorners(img, (7,6), corners2,ret) cv2.imshow('img',img) cv2.waitKey(500)