Book Image

Python Game Programming By Example

Book Image

Python Game Programming By Example

Overview of this book

Table of Contents (14 chapters)
Python Game Programming By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 as dark wood and light wood) may work.

  4. For best results, use a board with a light border around the playing area.

  5. Also, for best results, use a board with a matte finish or no finish. Reflections on a glossy board will probably interfere with the analysis...