Ask Your Question

Regarding findchessboardcorners

asked 2018-10-04 02:27:09 -0500

senem gravatar image

I write some codes for chessboard detection. It is running very perfect. If chessboard is empty, then it is running perfect. If chesspieces are on chessboard, then is cannot detect chessboard, returning FALSE. So, is this findchessboardcorners function running just when chessboard is empty ?

edit retag flag offensive close merge delete


the answer of your question is YES.and what's more,we get the cam params by using findchessboardcorners function (when chessboard is empty ),and use the params when we processing other images (not chessboard image)

jsxyhelu gravatar imagejsxyhelu ( 2018-10-06 17:01:51 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2018-10-04 02:41:58 -0500

berak gravatar image

it's not meant to be used with a "real world" chessboard with figures on it. it is mainly used for calibration purposes.

you would use findChessBoardCorners with an artificial (rectangular !) board, like here:

(it needs to find ALL corners there, if you put figures on it, it will miss some)

edit flag offensive delete link more


chess game board is 8x8 i think you need a board not a square.

sturkmen gravatar imagesturkmen ( 2018-10-04 03:10:49 -0500 )edit

ah. @berak indeed pointed out^^

sturkmen gravatar imagesturkmen ( 2018-10-04 03:12:19 -0500 )edit

@sturkmen, i think, it will detect square boards, too (problem there is more the 90° rotation ambiguity)

but putting figures on it will hide some of the corners, and detection will fail

berak gravatar imageberak ( 2018-10-04 03:15:05 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-10-04 02:27:09 -0500

Seen: 305 times

Last updated: Oct 04 '18