

Place pieces of chess board to their starting position.Note that "constants.bin" file is created or modified. You can rotate the image by pressing the key "r" to adjust that. You don't need to manually select chess board corners it should be automatically detected by the program. Run "board_calibration.py"(Alternatively, click "Board Calibration" button in the GUI).Ĭheck that corners of your chess board are correctly detected by "board_calibration.py" and press key "q" to save detected chess board corners. Place your webcam near to your chessboard so that all of the squares and pieces can be clearly seen by it. You can skip this step if you enter your Lichess API Access Token. You can skip this step if you enable "Find chess board of online game without template images." option or enter your Lichess API Access Token.Įnable auto-promotion to queen from settings of online game. Take screenshots of the chess board of an online game at starting position, one for when you play white and one for when you play black and save them as "white.JPG" and "black.JPG" similar to the images included in the source code. Turn off all the animations and extra features to keep chess board of online game as simple as possible. After that, if it's your turn to move in the online game, it will make the necessary clicks to make the move. Using computer vision it will detect the moves you make on a chess board. Program that enables you to play online chess using real chess boards.
