Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Could not find ChessboardCorners in following picture

I have tried following code to find corners of square boxes in attached chess board picture but unfortunately could not find it. Can you please inform me what can i do to detect corners of chessboard in this case...Many thanks ..:)

int main() {

cv::Mat imgOriginal; // input image Size boardSizeTopChessBoard; boardSizeTopChessBoard.width = 144;
boardSizeTopChessBoard.height = 3; vector<point2f> pointBufTopChessBoard; bool topChessBoardCornersFound = false;

imgOriginal = cv::imread("topChessBoard.jpg");
imshow("Original Image ", imgOriginal);

topChessBoardCornersFound = findChessboardCornersSB(imgOriginal, boardSizeTopChessBoard, pointBufTopChessBoard, 0);

if (topChessBoardCornersFound) { cout << "Corners found in top chess baord" << endl; } else { cout << "Corners not found in top chess baord" << endl; } waitKey(0); return(0);

image description

Could not find ChessboardCorners in following picture

I have tried following code to find corners of square boxes in attached chess board picture but unfortunately could not find it. Can you please inform me what can i do to detect corners of chessboard in this case...Many thanks ..:)

int main() {

cv::Mat imgOriginal; // input image Size boardSizeTopChessBoard; boardSizeTopChessBoard.width = 144;
boardSizeTopChessBoard.height = 3; vector<point2f> vector<Point2f> pointBufTopChessBoard; bool topChessBoardCornersFound = false;

false;

imgOriginal = cv::imread("topChessBoard.jpg");
imshow("Original Image ", imgOriginal);

imgOriginal);

topChessBoardCornersFound = findChessboardCornersSB(imgOriginal, boardSizeTopChessBoard, pointBufTopChessBoard, 0);

0);

if (topChessBoardCornersFound) { cout << "Corners found in top chess baord" << endl; } else { cout << "Corners not found in top chess baord" << endl; } waitKey(0); return(0);

return(0); }

image description