First time here? Check out the FAQ!
answered 2012-09-24 01:28:49 -0600
I think boardSize is incorrect in your code. boardSize should be equal to a number of internal corners, so in your case it should be cv::Size boardSize(5,4).
boardSize
cv::Size boardSize(5,4)