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() }
This commit is contained in:
Susmit 2016-06-02 01:06:17 +05:30
parent e1ba4399e8
commit 98dce911ca

View File

@ -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)