Commit 98dce911 authored by Susmit's avatar Susmit

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() }
parent e1ba4399
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment