Poker-AI.org Poker AI and Botting Discussion Forum 2013-12-12T17:48:07+00:00 http://poker-ai.org/phpbb/feed.php?f=26&t=2636 2013-12-12T17:48:07+00:00 2013-12-12T17:48:07+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5486#p5486 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by HontoNiBaka — Thu Dec 12, 2013 5:48 pm


]]>
2013-12-10T13:00:44+00:00 2013-12-10T13:00:44+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5473#p5473 <![CDATA[Re: At last OCR has been defeated.]]> This will leave you with a clean program, without having to code everything.

Statistics: Posted by shadehs — Tue Dec 10, 2013 1:00 pm


]]>
2013-12-10T09:54:01+00:00 2013-12-10T09:54:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5472#p5472 <![CDATA[Re: At last OCR has been defeated.]]> HontoNiBaka wrote:

it's better to use your own algorithm, when you want to scrape a pokersite, than to use a general purpose library like Tesseract.

I think that could be rephrased as "it's better to use your own solutions than public libraries for botting"

Statistics: Posted by eugen — Tue Dec 10, 2013 9:54 am


]]>
2013-12-06T08:27:31+00:00 2013-12-06T08:27:31+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5446#p5446 <![CDATA[Re: At last OCR has been defeated.]]>
Mrnice

Statistics: Posted by MrNice — Fri Dec 06, 2013 8:27 am


]]>
2013-12-06T08:00:23+00:00 2013-12-06T08:00:23+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5445#p5445 <![CDATA[Re: At last OCR has been defeated.]]>
I think, that it's better to use your own algorithm, when you want to scrape a pokersite, than to use a general purpose library like Tesseract.

Statistics: Posted by HontoNiBaka — Fri Dec 06, 2013 8:00 am


]]>
2013-12-06T07:52:29+00:00 2013-12-06T07:52:29+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5444#p5444 <![CDATA[Re: At last OCR has been defeated.]]>
Congrats!

Which techniques are you using for OCR ? tesseract?

Regards,

Mrnice

Statistics: Posted by MrNice — Fri Dec 06, 2013 7:52 am


]]>
2013-12-06T07:20:58+00:00 2013-12-06T07:20:58+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5442#p5442 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by nefton — Fri Dec 06, 2013 7:20 am


]]>
2013-12-06T06:39:30+00:00 2013-12-06T06:39:30+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5441#p5441 <![CDATA[Re: At last OCR has been defeated.]]>
However, I don't know, if that is the best way. It is secure, but I can only use a few stats. I might look into using SQL on my host and getting stats via SQL queries.

If anyone has tipps, how to do that securelly, I would be thankful.

Statistics: Posted by HontoNiBaka — Fri Dec 06, 2013 6:39 am


]]>
2013-12-06T05:47:59+00:00 2013-12-06T05:47:59+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5440#p5440 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by nefton — Fri Dec 06, 2013 5:47 am


]]>
2013-12-06T05:43:32+00:00 2013-12-06T05:43:32+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5439#p5439 <![CDATA[Re: At last OCR has been defeated.]]>
Image

I deleted the stacksizes from the image.

I think, now I pretty much have all the functionality I will need, time for code cleanups, testing and debugging.

Statistics: Posted by HontoNiBaka — Fri Dec 06, 2013 5:43 am


]]>
2013-12-05T22:01:19+00:00 2013-12-05T22:01:19+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5437#p5437 <![CDATA[Re: At last OCR has been defeated.]]> http://poker-ai.org/archive/www.pokerai ... =79&t=3941

Statistics: Posted by spears — Thu Dec 05, 2013 10:01 pm


]]>
2013-12-05T21:15:54+00:00 2013-12-05T21:15:54+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5436#p5436 <![CDATA[Re: At last OCR has been defeated.]]> Quote:

I've read, that it's something they do, when they suspect you of botting. A human won't even notice it, but the bot might crash. You are probably not suspicious in their eyes.


Well if your already flagged then OCR will be the least of your problems.

Statistics: Posted by shalako — Thu Dec 05, 2013 9:15 pm


]]>
2013-12-05T01:18:03+00:00 2013-12-05T01:18:03+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5424#p5424 <![CDATA[Re: At last OCR has been defeated.]]> Good work.
First word(hand number) I recognized about a month.
And last (table pot) took me less an hour (with collect chars to comparison)

That means that ocr has ben defeted :) Not mater how the difficult of this problem will increase (various table size, change pixel color, external vga grabber, or even webcam :).

Congards again.

Statistics: Posted by nefton — Thu Dec 05, 2013 1:18 am


]]>
2013-12-05T00:26:30+00:00 2013-12-05T00:26:30+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5423#p5423 <![CDATA[Re: At last OCR has been defeated.]]>

Your thread gave me motivation to work on my scraper again. So far it works 100%, I feel, like I have discovered the secret to good scraping. I don't know, how robust it is though.

Statistics: Posted by HontoNiBaka — Thu Dec 05, 2013 12:26 am


]]>
2013-12-02T03:39:14+00:00 2013-12-02T03:39:14+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5366#p5366 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by HontoNiBaka — Mon Dec 02, 2013 3:39 am


]]>
2013-12-02T01:48:58+00:00 2013-12-02T01:48:58+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5365#p5365 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by shalako — Mon Dec 02, 2013 1:48 am


]]>
2013-12-02T00:14:44+00:00 2013-12-02T00:14:44+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5364#p5364 <![CDATA[Re: At last OCR has been defeated.]]> Also would be nice to add to the recognizer detector confusing situations. That saved a screenshot.

Statistics: Posted by nefton — Mon Dec 02, 2013 12:14 am


]]>
2013-12-01T23:54:19+00:00 2013-12-01T23:54:19+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5363#p5363 <![CDATA[Re: At last OCR has been defeated.]]>
Atm I use a very simple algorithm, I just calculate the average difference between the screenshot and the training images, it works 100% if there is no noise. I also look for certain pixels to find the window etc. I use a tolerance of 5 for the RGB values, but that is easy to beat by stars.

Statistics: Posted by HontoNiBaka — Sun Dec 01, 2013 11:54 pm


]]>
2013-11-30T00:40:11+00:00 2013-11-30T00:40:11+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5357#p5357 <![CDATA[Re: At last OCR has been defeated.]]> its too fast. 500ms more than enough. I wroute a class Hand_processor. He writes all regognized table info (from recognizer) to an array. Also he includes class FSM. (poker finite state machine). And when new info comes - he try to "clock" fsm. Based on all previous table infos.
It should be noted that I have not yet finished prototype of Hand_processor.

Statistics: Posted by nefton — Sat Nov 30, 2013 12:40 am


]]>
2013-11-30T00:36:23+00:00 2013-11-30T00:36:23+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5356#p5356 <![CDATA[Re: At last OCR has been defeated.]]> Quote:

Can your scraper detect action sequences? If yes, how do you do it? I thought about just scraping the tables every 10 ms or so, but I am still afraid to miss some actions.


Just analyse the table when it's your turn to play, that way you can get every action from your previous activity by deduction. No need to scrape the table every few ms imo.

Statistics: Posted by Gnomikian — Sat Nov 30, 2013 12:36 am


]]>
2013-11-30T00:22:17+00:00 2013-11-30T00:22:17+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5355#p5355 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by HontoNiBaka — Sat Nov 30, 2013 12:22 am


]]>
2013-11-27T12:16:24+00:00 2013-11-27T12:16:24+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5341#p5341 <![CDATA[Re: At last OCR has been defeated.]]>
But you're ahead of me on this, so I can only speak from theory.. :)

Statistics: Posted by eugen — Wed Nov 27, 2013 12:16 pm


]]>
2013-11-27T10:45:59+00:00 2013-11-27T10:45:59+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5340#p5340 <![CDATA[Re: At last OCR has been defeated.]]> eugen wrote:

Have you considered using video splitters instead?


Yes, of course I considered this option.
Its only advantage - accurate transmission pixels and their colors (but do not forget that the first thing that will make the poker room for detecting robot - little change the position of different elements and their color)

Searching on the internet, I have not found anything suitable. You have to buy and try. Besides, the big question is whether it will suit you.
And the camera lie near :) Besides OCR = optical character recognition :)

p.s. Just looked at ebay. Yes, it seems a good solution. I will try it. (but with a camera of course mutch more beautiful :) )

Statistics: Posted by nefton — Wed Nov 27, 2013 10:45 am


]]>
2013-11-27T09:44:47+00:00 2013-11-27T09:44:47+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5339#p5339 <![CDATA[Re: At last OCR has been defeated.]]> nefton wrote:

Sory for my english.
I meant that I had won OCR. But now I understand how far this victory yet. Fixity table size, low noise immunity, and an application for screenshots. Still have to hope for incompetence of poker room. This is not a victory. I want to make very external OCR with the camera and the other computer. Unfortunately the time I have not so much, and I have to postpone the decision of external OCR.

Have you considered using video splitters instead?

Statistics: Posted by eugen — Wed Nov 27, 2013 9:44 am


]]>
2013-11-26T09:34:54+00:00 2013-11-26T09:34:54+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5326#p5326 <![CDATA[Re: At last OCR has been defeated.]]> nefton wrote:

Sory for my english.


Absolutely no problem. I understand you fine. Your English is better than my Russian. Good posts

Statistics: Posted by spears — Tue Nov 26, 2013 9:34 am


]]>
2013-11-26T08:26:46+00:00 2013-11-26T08:26:46+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5325#p5325 <![CDATA[Re: At last OCR has been defeated.]]> I meant that I had won OCR. But now I understand how far this victory yet. Fixity table size, low noise immunity, and an application for screenshots. Still have to hope for incompetence of poker room. This is not a victory. I want to make very external OCR with the camera and the other computer. Unfortunately the time I have not so much, and I have to postpone the decision of external OCR.

Statistics: Posted by nefton — Tue Nov 26, 2013 8:26 am


]]>
2013-11-25T23:13:42+00:00 2013-11-25T23:13:42+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5324#p5324 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by Gnomikian — Mon Nov 25, 2013 11:13 pm


]]>
2013-11-23T06:17:03+00:00 2013-11-23T06:17:03+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5315#p5315 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by corintio — Sat Nov 23, 2013 6:17 am


]]>
2013-11-22T19:52:54+00:00 2013-11-22T19:52:54+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5314#p5314 <![CDATA[Re: At last OCR has been defeated.]]> corintio wrote:

PT software on the guest will access the PostgreSQL database on the host via TCP/IP, not a shared folder. I don't think this TCP connection is a red flag, as this is necessary for PT to work, and PT is a "approved" software.

And the casino software won't be able to know if there is any more apps connected to the database, because it's not running in the guest system (and could be easily detected with something like netstat)

Rest of your bot has to perfectly mimic human behavior then. I think VM is a very serious flag because it narrows down their search to what, 0.05% of user base?

Statistics: Posted by eugen — Fri Nov 22, 2013 7:52 pm


]]>
2013-11-22T15:26:57+00:00 2013-11-22T15:26:57+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5310#p5310 <![CDATA[Re: At last OCR has been defeated.]]>
And the casino software won't be able to know if there is any more apps connected to the database, because it's not running in the guest system (and could be easily detected with something like netstat)

Statistics: Posted by corintio — Fri Nov 22, 2013 3:26 pm


]]>
2013-11-22T11:27:58+00:00 2013-11-22T11:27:58+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5309#p5309 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by HontoNiBaka — Fri Nov 22, 2013 11:27 am


]]>
2013-11-22T02:58:09+00:00 2013-11-22T02:58:09+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5308#p5308 <![CDATA[Re: At last OCR has been defeated.]]>
Right now I'm still fine tuning the scraper and tying it to the bot logic. Will incorporate the stats only after I have a playing bot.

Statistics: Posted by corintio — Fri Nov 22, 2013 2:58 am


]]>
2013-11-21T18:24:01+00:00 2013-11-21T18:24:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5307#p5307 <![CDATA[Re: At last OCR has been defeated.]]> corintio wrote:

Hi HontoNiBaka, which stats are you referring to?


I am referring to PokerTracker stats. I would rather get the stats through normal SQL queries, but I have read, that it's safer to scrape the stats from the PT HUD which runs in the VM.

Statistics: Posted by HontoNiBaka — Thu Nov 21, 2013 6:24 pm


]]>
2013-11-21T03:20:12+00:00 2013-11-21T03:20:12+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5306#p5306 <![CDATA[Re: At last OCR has been defeated.]]> HontoNiBaka wrote:

Do you also get your stats from OCR? Are you running Stars in a VM? Are you using any hooks or something like that, or just pure OCR?

Hi HontoNiBaka, which stats are you referring to?

nefton wrote:

But recently (yesterday) I began to have doubts about are (the safety of this approach) is sufficient.
This theme is cause for concern.
viewtopic.php?f=26&t=2435&start=20#p3827
In any case. no program is 100% not detectable.

That's why I prefer to raise just one flag: Using a VM, with nothing else in it, besides the casino client and PokerTracker.

Statistics: Posted by corintio — Thu Nov 21, 2013 3:20 am


]]>
2013-11-21T00:23:36+00:00 2013-11-21T00:23:36+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5304#p5304 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by nefton — Thu Nov 21, 2013 12:23 am


]]>
2013-11-21T00:16:15+00:00 2013-11-21T00:16:15+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5303#p5303 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by ciclone — Thu Nov 21, 2013 12:16 am


]]>
2013-11-20T21:14:48+00:00 2013-11-20T21:14:48+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5302#p5302 <![CDATA[Re: At last OCR has been defeated.]]> hmm... webcams I had test - not wery good. (bad. wery bed)
of course possible to think about something with webcams, but I found much better solution.
My old good canon eos 500D. Its perfect! Using some applications I got 20fps on USB2.0
Image is perfect. even with standard lens.
I can easyly process each point on my LCD monitor. (even better :) )
a little prolem that appear (on my way to glory :) ) is that canon do not get his SDK to each customer.

This is stupid!

Statistics: Posted by nefton — Wed Nov 20, 2013 9:14 pm


]]>
2013-11-20T15:51:52+00:00 2013-11-20T15:51:52+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5301#p5301 <![CDATA[Re: At last OCR has been defeated.]]> HontoNiBaka wrote:

Do you also get your stats from OCR? Are you running Stars in a VM? Are you using any hooks or something like that, or just pure OCR?


Stats from ocr? its imposible. VM - no yet. hooks - no. I even cant use them yet :)
Juct OCR from full screem capture.

But recently (yesterday) I began to have doubts about are (the safety of this approach) is sufficient.
This theme is cause for concern.
viewtopic.php?f=26&t=2435&start=20#p3827
In any case. no program is 100% not detectable.
Now I think about external OCR. weigh the pros and cons.

Statistics: Posted by nefton — Wed Nov 20, 2013 3:51 pm


]]>
2013-11-20T15:06:12+00:00 2013-11-20T15:06:12+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5300#p5300 <![CDATA[Re: At last OCR has been defeated.]]> Statistics: Posted by HontoNiBaka — Wed Nov 20, 2013 3:06 pm


]]>
2013-11-14T15:39:20+00:00 2013-11-14T15:39:20+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5242#p5242 <![CDATA[Re: At last OCR has been defeated.]]> MrNice wrote:

What are you using for OCR ?


hmm... wide question.
1. Programing language: C++
2. Library to work with images: openCV
3. Screenshot teсhniques: hDesktopDC = GetDC(hDesktopWnd);

4. Find window teсhnique:
-find window coners (5 points of a certain color and a certain disposition)

5. OCR techniques:
-number of pixels a certain color
-find char and compare with database
-find a char and calculate average difference
-signatures (so I called it)
calculate sum of pixels in each row = signature Y
calculate sum of pixels in each col = signature X
Then сompare with the pattern
-Filters (any conditions you think. HSV=good, but not with red)
.....

Statistics: Posted by nefton — Thu Nov 14, 2013 3:39 pm


]]>
2013-11-14T13:31:51+00:00 2013-11-14T13:31:51+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5238#p5238 <![CDATA[Re: At last OCR has been defeated.]]>

What are you using for OCR ?

Regards,

Mrnice

Statistics: Posted by MrNice — Thu Nov 14, 2013 1:31 pm


]]>
2013-11-11T11:08:48+00:00 2013-11-11T11:08:48+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5226#p5226 <![CDATA[Re: At last OCR has been defeated.]]> Why I want write the best pokerbot ever? Money? 40$/day? ha ha :)
Glory and Art! That answer for why I will not hide my thoughts from the people.

p.s. New account in Ukraine, Russia, and some other contries - is not problem.
my future bot will have no any windows. and send info about state of the screen via TCP.
Buttons will be clicked by the real people, whose will see what to do on another computer.

Statistics: Posted by nefton — Mon Nov 11, 2013 11:08 am


]]>
2013-11-11T10:04:50+00:00 2013-11-11T10:04:50+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5225#p5225 <![CDATA[Re: At last OCR has been defeated.]]>
But let's see what we've got more ...
- Your have been playing or observing Hand #106244036685
- You do have mounted a drive/ partition D: containing a directory Poker_bot
- D: implies you are running Windows. More specifically: Considering the 'computer' icon in the top left corner I would assume you are running WinME or Vista. Vista seems more fitting
- Glimpsing at the filename I would assume you are located in the eastern europe/ western asian region. As least you are speaking a language originating from there
- Maybe there is an open window titled 'scr'
- If I knew what szachenie means I could maybe name your (foreign languaged) IDE which contains a list of recently opened files
- your background picture is white and slightly purple. Considering your avatar it could likely be an animee figure
- you do have word 2007 + excel 2007 (or newer) installed and an old version of adobe pdf installed
...

Even if a few guesses are brutally wrong - point is you (most likely) have given more information that you wanted to. You can almost certainly be sure that PokerStars security team is browsing this forum. I wouldn't fuck around with them. Just my two cents

But hey, good work! (Honestly)

Statistics: Posted by Nose — Mon Nov 11, 2013 10:04 am


]]>
2013-11-10T18:46:10+00:00 2013-11-10T18:46:10+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5224#p5224 <![CDATA[Re: Welcome and Hello]]>

Statistics: Posted by nefton — Sun Nov 10, 2013 6:46 pm


]]>
2013-11-10T15:46:56+00:00 2013-11-10T15:46:56+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2636&p=5223#p5223 <![CDATA[At last OCR has been defeated.]]> Statistics: Posted by nefton — Sun Nov 10, 2013 3:46 pm


]]>