Poker-AI.org http://poker-ai.org/phpbb/ |
|
Screen scraping IPoker new client table information http://poker-ai.org/phpbb/viewtopic.php?f=26&t=2999 |
Page 1 of 1 |
Author: | mlatinjo [ Fri Nov 25, 2016 10:56 pm ] |
Post subject: | Screen scraping IPoker new client table information |
Hi, I have a winning bot playing NL4 party poker fast forward tables with winrate at 5bb/100 and NL10 2bb/100. My bot also plays on 888 poker, around 3bb/100 winrate, rakeback sucks hard so I don't like it. My bot used to play on ipoker old client, but since ipoker updated new software, I don't see a way to screen scrap table information. The problem is that stacks and bet sizes, cards, names are all the time displayed in different ways, same font size but pixels look very different. I managed by applying different filters to read everything, but still it works around 99% of the time, I would like to have 100% accuracy. I also tried using ipokertools to increase font, replace card images, change font color, but still the same digits or letters look different. Tried also different table sizes. Does anyone has solution for ipoker new client screen scraping? I have noticed that there are significantly less players playing at ipoker since they upgraded to new ipoker client, likely many bots can't screen scrap anymore. I have also tried OCR from microsoft and google but doesn't work with 100 accuracy. Regarding my bot, I have ruled based bot. I was playing poker myself for 2 years, had 8bb winrate at NL100 party poker, and stopped because having too much stress playing and was challenged to make a winning bot. I find it unmoral, but still challenge is stronger than moral. My bot is gto based, i have my own database for advanced statistics, I read from DB population tendencies for station, agro fish, tight player, regular, unknown player category, for different board textures, position, bet size and other parameters of the game state. I have also developed simulator, which simulates 6max gameplay, I can parse hand history from pokertracker and simulate it, see what ranges my bot plays at certain spot which helps me a lot at testing and improving, fixing bugs. I finished master studies in AI, was doing 18 months phd in machine learning and stopped because was addicted with poker and didn't like topic and professor. I use c# and partially vb.net for developing bot. How to get to restricted topics? Hope to see some answers, Mlatinjo. |
Author: | spears [ Mon Nov 28, 2016 9:35 am ] |
Post subject: | Re: Screen scraping IPoker new client table information |
It's a tough problem. A lot of people have problems with Tesseract. Can you get it to work on regular fonts? Have you tried using neural networks? That is known to work for handwriting. You might need to use a GPU. Even then there might be uncertainty recognising individual characters. To overcome that you would have to adopt a statistical approach to find the most likely given the context. |
Author: | mlatinjo [ Mon Nov 28, 2016 3:34 pm ] | ||||
Post subject: | Re: Screen scraping IPoker new client table information | ||||
Hi Spears, thank you for your answer. I have tried so far only Tesseract and Microsoft ocr but it was not good enough, I need 100% accuracy. I have binaryse image, scale but it didn't help. I haven't use neural networks yet, because that is much more effort than standard comparing of image pixels. It looks like that ipoker displays limited number of different fonts for digits, so I am solving the problem by finding all of different digits they display, save those digits as templates and compare unseen digit to saved black and white templates. So far I read everything 100% accurate except bot stack, I guess that I still didn't find all different digits for bot stack which ipoker displays. I parse player names from xml file which ipoker saves at the start of each hand in DataTemp folder, which saves a lot of work. My idea was to first try approach of converting image to black and white and save all templates of digits I find, which works fine so far and if it doesn't work to try to use neural networks. I was working on recognizing hand written digits using neural network during my phd, but there the database is large, there are many test samples, for ipoker I can provide to neural network only few samples for each digit, which would likely result in overfitting (learning by heart). I have attached 3 different samples of digit 3 I have found so far for bot stack (bot stack differs from other stacks). It would be easy if I would know, there are 3 different font sizes ipoker uses to display digits, but I don't know how many different, I can only let bot play and throw exception if he doesn't read e.g. stack properly so I can cut the unseen digits and save it to templates, and do that until bot reads everything properly.
|
Author: | spears [ Tue Nov 29, 2016 9:09 am ] |
Post subject: | Re: Screen scraping IPoker new client table information |
I agree it's a lot of work to use NNs. But I don't understand why you can only get a few samples. Why not just play manually and record all digits at the same time? Or you could use a wide variety of fonts of suitable size scaled and repositioned as training sets. Do you use exact pixel matching? You can just check the number of matching pixels is high enough. And you can try that for various fonts and font positions. |
Author: | mlatinjo [ Tue Nov 29, 2016 10:10 am ] |
Post subject: | Re: Screen scraping IPoker new client table information |
I got only few samples because some digits have high frequency so I read mostly them and that's why I am able to read bot stack most of the time, but some digits have low frequency which is why I still didn't collect all digits. E.g. 7.56$ I am able to read, but 7$ i can't because when it is single digit, 7 looks different. Similarly, 27,56$ looks different because there are 4 digits in the stack. So it is hard to get all different digits, I need for that different stack sizes, which takes time to collect, and I am never sure if I have collected everything. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |