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