abidrahmank/OpenCV2-Python-Tutorials

Error in the camera calibration tutorial

Opened this issue · 0 comments

Hi,

I believe there is an error in the code given in the camera calibration tutorial.

When trying to find the chessboard corners, the line is currently :
ret, corners = cv2.findChessboardCorners(gray, (7,6), None)

But I believe it should be
ret, corners = cv2.findChessboardCorners(gray, (7,6), objp)

Because it is objp that is added to the objpoint list. If we read the code as it is, we always add the same initialized array objp that is never modified after creation.

In any case, thanks for the tutorials, they really help me!