コード例 #1
0
ファイル: TableIdentifier.cs プロジェクト: enijkamp/pokerbot
            public List <Card> process(Image image, TableIdentifier parent)
            {
                List <Card> cards = identifier.identifyCards(image);

                Log.Fine("found " + cards.Count + " cards");
                return(cards);
            }
コード例 #2
0
ファイル: TableIdentifier.cs プロジェクト: enijkamp/pokerbot
            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>());
                }
            }
コード例 #3
0
        public List <Card> next()
        {
            Image image = iterator.next();

            return(identifier.identifyCards(image));
        }