From 98dce911ca46b192423d595e63c272a6488b6810 Mon Sep 17 00:00:00 2001 From: Susmit Date: Thu, 2 Jun 2016 01:06:17 +0530 Subject: [PATCH] Update py_calibration.markdown In the camera calibration code { cv2.cornerSubPix() } will be of no use.In the updated code it is assigned to the (corners2) variable which is passed down to { cv2.drawChessboardCorners() } --- .../py_calib3d/py_calibration/py_calibration.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.markdown b/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.markdown index 9c6c1fb643..1e22cedfb0 100644 --- a/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.markdown +++ b/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.markdown @@ -130,11 +130,11 @@ for fname in images: if ret == True: objpoints.append(objp) - cv2.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria) + corners2=cv2.cornerSubPix(gray,corners, (11,11), (-1,-1), criteria) imgpoints.append(corners) # Draw and display the corners - cv2.drawChessboardCorners(img, (7,6), corners, ret) + cv2.drawChessboardCorners(img, (7,6), corners2, ret) cv2.imshow('img', img) cv2.waitKey(500)