Classify all cards in an image by their rank and suit
In the Athens European Exchange programme at Télécom ParisTech over the course of 4 days the authors have created a script to consecutively
- Localize and single out the playing cards of an input image
- Detect the region containing the rank and suit in every card
- Classify both rank and suit by comparing against a reference dataset
Make sure you have matplotlib
, openCV
, numpy
and skimage
installed, then run
python src/jackbot.py -p /path/to/input/image
If run on the test image in images/test/wasd.jpg
:
The algorithm produces the following results:
More information about the internals of the project can be found in the final presentation.