Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 6:44 pm

All times are UTC




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Tue Nov 26, 2013 9:34 am 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
nefton wrote:
Sory for my english.


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


Top
 Profile  
 
PostPosted: Wed Nov 27, 2013 9:44 am 
Offline
Junior Member

Joined: Mon Mar 25, 2013 8:14 pm
Posts: 45
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?


Top
 Profile  
 
PostPosted: Wed Nov 27, 2013 10:45 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
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 :) )


Top
 Profile  
 
PostPosted: Wed Nov 27, 2013 12:16 pm 
Offline
Junior Member

Joined: Mon Mar 25, 2013 8:14 pm
Posts: 45
The issue I have with a camera is that it will never be as precise as a split image. Which imo is very important, considering that poker rooms check for bots by slightly manipulating positioning of elements on the table.

But you're ahead of me on this, so I can only speak from theory.. :)


Top
 Profile  
 
PostPosted: Sat Nov 30, 2013 12:22 am 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
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.


Top
 Profile  
 
PostPosted: Sat Nov 30, 2013 12:36 am 
Offline
New Member

Joined: Wed Apr 03, 2013 4:19 pm
Posts: 6
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.


Top
 Profile  
 
PostPosted: Sat Nov 30, 2013 12:40 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
10 ms :shock: 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.


Top
 Profile  
 
PostPosted: Sun Dec 01, 2013 11:54 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
How would you make your scraper more robust against noise and Stars slightly changing the colors etc.?

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.


Top
 Profile  
 
PostPosted: Mon Dec 02, 2013 12:14 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
We must look a particular problem, to find the optimal solution. Against random noise while character recognition - convolution works well. To filter the range of colors (such as purple Call in ps) suitable conversion to HSV. (except red. was thinking to write own conversion).
Also would be nice to add to the recognizer detector confusing situations. That saved a screenshot.


Top
 Profile  
 
PostPosted: Mon Dec 02, 2013 1:48 am 
Offline
Veteran Member

Joined: Mon Mar 04, 2013 9:40 pm
Posts: 269
I have never seen an issue with PS changing pixel locations or color. Is this something new or ? I just checked it and everything works fine


Top
 Profile  
 
PostPosted: Mon Dec 02, 2013 3:39 am 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
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.


Top
 Profile  
 
PostPosted: Thu Dec 05, 2013 12:26 am 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
Image

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.


Top
 Profile  
 
PostPosted: Thu Dec 05, 2013 1:18 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
My congratulations! *drink*
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.


Top
 Profile  
 
PostPosted: Thu Dec 05, 2013 9:15 pm 
Offline
Veteran Member

Joined: Mon Mar 04, 2013 9:40 pm
Posts: 269
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.


Top
 Profile  
 
PostPosted: Thu Dec 05, 2013 10:01 pm 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
http://poker-ai.org/archive/www.pokerai ... =79&t=3941


Top
 Profile  
 
PostPosted: Fri Dec 06, 2013 5:43 am 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
Now I can also scrape stats:

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.


Top
 Profile  
 
PostPosted: Fri Dec 06, 2013 5:47 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
stats from poker tracker?


Top
 Profile  
 
PostPosted: Fri Dec 06, 2013 6:39 am 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
Yes, PokerTracker 4 stats, scraped directly from the VM, so no SQL or anything.

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.


Top
 Profile  
 
PostPosted: Fri Dec 06, 2013 7:20 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
think you should try to write the bot. Many questions like "secure scraping poker tracker stats" will disappear by themselves.


Top
 Profile  
 
PostPosted: Fri Dec 06, 2013 7:52 am 
Offline
Junior Member

Joined: Wed Sep 04, 2013 6:05 pm
Posts: 47
Hi HontoNiBaka,

Congrats!

Which techniques are you using for OCR ? tesseract?

Regards,

Mrnice


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group