Find chessboard corners with occlusions

asked 2015-10-04 04:01:04 -0600

eladon gravatar image

Hi there, Is there a way to find chessboard corners while some of the corners are occluded (by another object or chopped by the image boarders)? Is there an easy way to add this feature (without using "harrisCorner" or other corner detection algorithms)?

E.g. assume a 11x16 chessboard, where the top left corners are outside the image. The basic findChessboardCorners algorithm will fail to find any corner, although it may be useful to show only the ones that were found while the corners that were not found will be set to illegal value or null or something else.

Alternatively, is there a way to find a sub-chessboard? E.g. in an image with 11x16 squares chessboard, calling findChessboardCorners (img, size(9,12), corners) will return a 9x12 chessboard, anywhere (the current findChessboardCorners fails on this one too).

Cheers!

edit retag flag offensive close merge delete

Comments

Both functionality is not included in OpenCV and would require you to adapt the calibration functionality in OpenCV. If you are up for that, please provide a PR afterwards.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-05 06:22:16 -0600 )edit