PlayChessWithAWebCam/BoardFinder: Difference between revisions
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
The board finder is initialized with an image. Optionally you can specify the Video instance to be used. | The board finder is initialized with an image. Optionally you can specify the Video instance to be used. | ||
<source lang='python'> | <source lang='python'> | ||
finder = BoardFinder(image,video=video) | |||
</source> | </source> | ||
Revision as of 06:29, 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 used as a basis for the BoardFinder.
Initializing the BoardFinder
The board finder is initialized with an image. Optionally you can specify the Video instance to be used.
finder = BoardFinder(image,video=video)