Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Game Programming By Example

You're reading from   Python Game Programming By Example A pragmatic guide for developing your own games with Python

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785281532
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime