So, my “game image -> individual cards” piece of the pipeline is more or less the same as his, with a few modifications. Luckily, Arnab Nandi had already solved that problem. I decided the first step to this would be to identify each card in an image. Whoever can identify a set the fastest wins it, and whoever has the most sets by the time the entire deck is dealt has won the game. There’s usually going to be 12, sometimes 15, and very rarely 18 cards out at any given time. A set is three cards that, for each of these attributes, are either all the same, or all different. There are 3 4 combinations, and so a deck of SET cards has 81 total. I was looking for an excuse to play with OpenCV, and teaching a computer to play SET seemed like a good choice.Ī quick primer on SET: each card has four attributes: shape, color, number, and fill, each of which can have three different values. SET was a game I used to play with my family years ago, and I was reintroduced to it recently while attending the Recurse Center. Sets are indicated by cards that have the same outline color. SET Card Game Solver with OpenCV and Python Jul 25, 2018
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |