mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
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:
parent
e1ba4399e8
commit
98dce911ca
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user