Difference between revisions of "PlayChessWithAWebCam/BoardFinder"

From BITPlan Wiki
Jump to navigation Jump to search
(Created page with "see [https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/boardfinder.py#L14 class BoardFinder] in module [https://github.com/WolfgangFahl/play-chess-wi...")
 
Line 1: Line 1:
 +
= Source Code =
 
see [https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/boardfinder.py#L14 class BoardFinder] in module [https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/boardfinder.py boardfinder]
 
see [https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/boardfinder.py#L14 class BoardFinder] in module [https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/pcwawc/boardfinder.py boardfinder]
 +
tests are in the: [https://github.com/WolfgangFahl/play-chess-with-a-webcam/blob/master/tests/test_BoardFinder.py test_BoardFinder module]
 +
= Algorithm =
 +
== Finding the chessboard ==
 +
{{Link|target=OpenCV}} has a function [https://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#bool%20findChessboardCorners(InputArray%20image,%20Size%20patternSize,%20OutputArray%20corners,%20int%20flags) findChessboardCorners] which is usually used for camera calibration and not really intended for the use case of "real chessboards".

Revision as of 07:50, 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".