Class to load and store the template cards from a folder path.
More...
#include <CardDiscriminator.h>
|
| | CardTemplate (cv::String folder) |
| | Construct a new Card Template object. Template cards are defined as constant. The following procedure (initialiser list) is required to set a const in runtime. More...
|
| |
| cv::Mat | getCard (int index) |
| | Get the Card object. More...
|
| |
| cv::String | getCardRank (int index) |
| | Get the Card name. More...
|
| |
|
| static TemplateImages | init (cv::String folder, bool suit_flag) |
| | Init function to parse the folder path and read the template card images. More...
|
| |
Class to load and store the template cards from a folder path.
◆ CardTemplate()
| CardTemplate::CardTemplate |
( |
cv::String |
folder | ) |
|
|
inline |
Construct a new Card Template object. Template cards are defined as constant. The following procedure (initialiser list) is required to set a const in runtime.
Similarly set the num_template_cards variable.
- Parameters
-
| folder | is a string to the folder path |
◆ getCard()
| cv::Mat CardTemplate::getCard |
( |
int |
index | ) |
|
|
inline |
Get the Card object.
- Parameters
-
| index | index of card in rank_images object |
- Returns
- cv::Mat single template card at index location
◆ getCardRank()
| cv::String CardTemplate::getCardRank |
( |
int |
index | ) |
|
|
inline |
Get the Card name.
- Parameters
-
| index | index of card in rank_images object |
- Returns
- cv::String name of detected card
◆ init()
| static TemplateImages CardTemplate::init |
( |
cv::String |
folder, |
|
|
bool |
suit_flag |
|
) |
| |
|
inlinestatic |
Init function to parse the folder path and read the template card images.
- Parameters
-
| folder | is a string to the folder path |
| suit_flag | boolean to distinguish between loading of ranks or suit images |
- Returns
- TemplateImages
◆ num_template_cards
| const int CardTemplate::num_template_cards |
The documentation for this class was generated from the following file: