Difference between revisions of "PlayChessWithAWebCam/BoardFinder"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
=== Examples === | === Examples === | ||
see [https://github.com/WolfgangFahl/play-chess-with-a-webcam/tree/master/testMedia testMedia source folder] | see [https://github.com/WolfgangFahl/play-chess-with-a-webcam/tree/master/testMedia testMedia source folder] | ||
+ | ==== Test Pictures ==== | ||
<gallery> | <gallery> | ||
File:chessBoard001.jpg | File:chessBoard001.jpg | ||
Line 24: | Line 25: | ||
File:chessBoard013.jpg | File:chessBoard013.jpg | ||
</gallery> | </gallery> | ||
+ | ==== Chessboard Corners detected by OpenCV ==== |
Revision as of 06:55, 1 December 2019
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.