PlayChessWithAWebCam/BoardFinder

From BITPlan Wiki
Jump to navigation Jump to search

Source Code

see class BoardFinder in module boardfinder tests are in the: test_BoardFinder module

Algorithm

Finding the chessboard

OpenCV has a function findChessboardCorners which is usually used for camera calibration and not really intended for the use case of "real chessboards".

Still it is very helpful and uses as a basis for the BoardFinder.

Examples

see testMedia source folder

Test Pictures

Chessboard Corners detected by OpenCV

Image001-corners-7x7.jpgImage002-corners-5x5.jpgImage003-corners-4x5.jpgImage004-corners-7x7.jpgImage005-corners-5x5.jpgImage006-corners-5x5.jpgImage007-corners-5x5.jpgImage008-corners-7x7.jpgImage009-corners-7x7.jpgImage010-corners-6x7.jpgImage011-corners-7x7.jpgImage012-corners-4x6.jpgImage013-corners-5x7.jpg