Beispiel #1
0
            public List <Card> process(Image image, TableIdentifier parent)
            {
                List <Card> cards = identifier.identifyCards(image);

                Log.Fine("found " + cards.Count + " cards");
                return(cards);
            }
Beispiel #2
0
            public List <Card> process(Image image, Rectangle rect, TableIdentifier parent)
            {
                // colors
                Image reduced = reducer.reduceColors(image);

                parent.renderImage(reduced, rect);

                // empty?
                if (!nearlySameColor(reduced))
                {
                    List <Card> cards = identifier.identifyCards(reduced);
                    Log.Fine("found " + cards.Count + " cards");
                    return(cards);
                }
                else
                {
                    Log.Fine("no cards");
                    return(new List <Card>());
                }
            }
        public List <Card> next()
        {
            Image image = iterator.next();

            return(identifier.identifyCards(image));
        }