Poker-AI.org
http://poker-ai.org/phpbb/

At last OCR has been defeated.
http://poker-ai.org/phpbb/viewtopic.php?f=26&t=2636
Page 1 of 3

Author:  nefton [ Sun Nov 10, 2013 3:46 pm ]
Post subject:  At last OCR has been defeated.

At last OCR has been defeated.

Attachments:
result.png
result.png [ 188.08 KiB | Viewed 27808 times ]

Author:  nefton [ Sun Nov 10, 2013 6:46 pm ]
Post subject:  Re: Welcome and Hello

ups. after release it takes only 5 milliseconds :)

Author:  Nose [ Mon Nov 11, 2013 10:04 am ]
Post subject:  Re: At last OCR has been defeated.

5ms is very fast ... Should get the job done. Congrats.

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)

Author:  nefton [ Mon Nov 11, 2013 11:08 am ]
Post subject:  Re: At last OCR has been defeated.

Yes, I know that pokerstars security can easyly (30 min) find my account there. And even all info about me including adress, phone, internet pages, date of birth, friend, ets. They can also block my account (not mater that I have not yet break any law (not Ukraine, not UK, even not PS)). But.
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.

Author:  MrNice [ Thu Nov 14, 2013 1:31 pm ]
Post subject:  Re: At last OCR has been defeated.

Nice nefton! :D

What are you using for OCR ?

Regards,

Mrnice

Author:  nefton [ Thu Nov 14, 2013 3:39 pm ]
Post subject:  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)
.....

Author:  HontoNiBaka [ Wed Nov 20, 2013 3:06 pm ]
Post subject:  Re: At last OCR has been defeated.

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?

Author:  nefton [ Wed Nov 20, 2013 3:51 pm ]
Post subject:  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.

Author:  nefton [ Wed Nov 20, 2013 9:14 pm ]
Post subject:  Re: At last OCR has been defeated.

I just have a littel play with some variants of external OCR.
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!

Author:  ciclone [ Thu Nov 21, 2013 12:16 am ]
Post subject:  Re: At last OCR has been defeated.

What do you mean SDK ?

Author:  nefton [ Thu Nov 21, 2013 12:23 am ]
Post subject:  Re: At last OCR has been defeated.

Canon for their cameras made ​​libraries (such as API) for a variety of programming languages​​. And then, instead, to give them to the people, giving them only to firms developers on request.

Author:  corintio [ Thu Nov 21, 2013 3:20 am ]
Post subject:  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.

Author:  HontoNiBaka [ Thu Nov 21, 2013 6:24 pm ]
Post subject:  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.

Author:  corintio [ Fri Nov 22, 2013 2:58 am ]
Post subject:  Re: At last OCR has been defeated.

What I'm planning is to install the PostgreSQL database in the host machine, so I think it's safe enough (and more reliable) to query it using SQL.

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.

Author:  HontoNiBaka [ Fri Nov 22, 2013 11:27 am ]
Post subject:  Re: At last OCR has been defeated.

But don't you need some sort of shared folder for that or some other way to exchange informations between the host and the guest? Won't that still make it unsafe?

Author:  corintio [ Fri Nov 22, 2013 3:26 pm ]
Post subject:  Re: At last OCR has been defeated.

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)

Author:  eugen [ Fri Nov 22, 2013 7:52 pm ]
Post subject:  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?

Author:  corintio [ Sat Nov 23, 2013 6:17 am ]
Post subject:  Re: At last OCR has been defeated.

Agreed. That's why I'm targeting a smaller and safer casino right now. If I can get a successful bot working, than I'll try to improve its stealthiness and go to a bigger casino. And my code can be easily adapted to a two physical machines setup.

Author:  Gnomikian [ Mon Nov 25, 2013 11:13 pm ]
Post subject:  Re: At last OCR has been defeated.

OCR defeated ? You meant OCR have won, PS was defeated with OCR.

Author:  nefton [ Tue Nov 26, 2013 8:26 am ]
Post subject:  Re: At last OCR has been defeated.

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.

Page 1 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/