Troubleshooting the project in real-world conditions

Although this project should work with many checkers sets, camera perspectives, and lighting setups, it still requires the user to set the stage carefully, in accordance with the following guidelines:

  1. Ensure that the webcam and the board are stationary. The webcam should be on a tripod or some other mount. The board should also be secured in place, or it should be sufficiently heavy so that it does not move when the players touch it.
  2. Leave the board empty until the application detects it and displays the bird's-eye view. If there are playing pieces on the board, they will probably interfere with the initial detection.
  3. For best results, use a black-and-white checkerboard. Other color schemes (such ...

Get Python Game Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.