예제 #1
0
 public CardIdentifierIterator(Iterator <Image> iterator,
                               CardIdentifier.IdentifyRegions identifyRegions,
                               CardIdentifier.IdentifyCards identifyCards)
 {
     this.iterator   = iterator;
     this.identifier = new CardIdentifier(identifyRegions, identifyCards);
 }
예제 #2
0
            public CardPipeline(TableLayout layout)
            {
                // patterns
                List <CardPattern> patterns = CardReader.readCardsFromResources();
                CardStrategy       strategy = new CardStrategyFast(patterns, layout);

                this.identifier = new CardIdentifier(strategy.identifyRegions,
                                                     strategy.identifyCards);
            }
예제 #3
0
            public CardPipelineSlow()
            {
                // patterns
                List <CardPattern> patterns = CardReader.readCardsFromResources();
                CardStrategy       strategy = new CardStrategySlow(patterns);

                this.identifier = new CardIdentifier(strategy.identifyRegions,
                                                     strategy.identifyCards);
            }