Fix the example in py_calib3d/py_calibration
authorKian Eliasi <kian.elbo@gmail.com>
Fri, 12 Aug 2022 14:56:59 +0000 (19:26 +0430)
committerGitHub <noreply@github.com>
Fri, 12 Aug 2022 14:56:59 +0000 (19:26 +0430)
doc/py_tutorials/py_calib3d/py_calibration/py_calibration.markdown

index bba7b90b9ffbb4756a9a7eed564f04ffbfcdac99..182f1c845b87c90b2fcc46fcf313de4083a33e65 100644 (file)
@@ -127,7 +127,7 @@ for fname in images:
         objpoints.append(objp)
 
         corners2 = cv.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria)
-        imgpoints.append(corners)
+        imgpoints.append(corners2)
 
         # Draw and display the corners
         cv.drawChessboardCorners(img, (7,6), corners2, ret)