Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2005, 04:41 PM
Big_Jim Big_Jim is offline
Member
 
Join Date: Jan 2005
Posts: 89
Default Reading Data From the Screen

(x-posted in Software)

I am attempting to write a program to do various calculations based on a particular hand in real-time.

I am currently working with PartyPoker and clones.

I have been able to read from the chat box all the information about any bets/raises/calls/etc as well as the information about the community cards.

However, I would like to be able to read the cards themselves, primarily to figure out the player's hole cards, and opponents cards if/when they are shown.

I have found a decent Screen OCR library (Textract. Google for it), but I cannot figure out how to read in the cards.

I think that I may be able to do it by creating a font which matches the PartyPoker font, but I have thus far been unsuccessful.

Any suggestions?

If you have suggestions that you feel to be too technical for explanation here, PM me.

Edit: I'm using C++ with Visual Studio 2003
Reply With Quote
  #2  
Old 10-07-2005, 04:55 PM
Link774 Link774 is offline
Junior Member
 
Join Date: Sep 2004
Posts: 22
Default Re: Reading Data From the Screen

I've programmed a bit but not well enough to know exactly how to do this. I'm thinking once you have a picture of the screen, since you know the (x,y) coordinates that each position's cards are at, you can just do a pixel by pixel comparison to figure out the index and suit. Would that be too inefficient? I think using OCR would be tricky.
Reply With Quote
  #3  
Old 10-07-2005, 05:41 PM
Freakin Freakin is offline
Senior Member
 
Join Date: Sep 2004
Posts: 1,633
Default Re: Reading Data From the Screen

all the information you need should be written out in the hand history file in realtime
Reply With Quote
  #4  
Old 10-07-2005, 05:45 PM
Link774 Link774 is offline
Junior Member
 
Join Date: Sep 2004
Posts: 22
Default Re: Reading Data From the Screen

Heh, that's a bit easier! Good point.
Reply With Quote
  #5  
Old 10-07-2005, 05:59 PM
Big_Jim Big_Jim is offline
Member
 
Join Date: Jan 2005
Posts: 89
Default Re: Reading Data From the Screen

Figured it out, thanks.
Reply With Quote
  #6  
Old 10-08-2005, 03:36 AM
Guest
 
Posts: n/a
Default Re: Reading Data From the Screen

[ QUOTE ]
I've programmed a bit but not well enough to know exactly how to do this. I'm thinking once you have a picture of the screen, since you know the (x,y) coordinates that each position's cards are at, you can just do a pixel by pixel comparison to figure out the index and suit. Would that be too inefficient? I think using OCR would be tricky.

[/ QUOTE ]
You, sir, are an idiot

MODS - Why aren't threads like this locked as soon as found?
Reply With Quote
  #7  
Old 10-08-2005, 04:03 AM
MyMindIsGoing MyMindIsGoing is offline
Member
 
Join Date: Sep 2004
Posts: 41
Default Re: Reading Data From the Screen

[ QUOTE ]
[ QUOTE ]
I've programmed a bit but not well enough to know exactly how to do this. I'm thinking once you have a picture of the screen, since you know the (x,y) coordinates that each position's cards are at, you can just do a pixel by pixel comparison to figure out the index and suit. Would that be too inefficient? I think using OCR would be tricky.

[/ QUOTE ]
You, sir, are an idiot

MODS - Why aren't threads like this locked as soon as found?

[/ QUOTE ]

WTF, I have not seen a single thread locked in this forum. This one is far from locking as far as I am concerned. Just let them have their little conversation...
Reply With Quote
  #8  
Old 10-08-2005, 04:18 AM
TheTROLL TheTROLL is offline
Senior Member
 
Join Date: Feb 2005
Location: London
Posts: 103
Default Re: Reading Data From the Screen

You want every thread locked where someone says something stupid? Good luck with that....
Reply With Quote
  #9  
Old 10-08-2005, 05:12 AM
Guest
 
Posts: n/a
Default Re: Reading Data From the Screen

When they're discussing methods for writing programs to cheat at poker and/or violate the terms of service of various sites, yes.

Nothing to do with stupid content.
Reply With Quote
  #10  
Old 10-08-2005, 07:18 AM
MyMindIsGoing MyMindIsGoing is offline
Member
 
Join Date: Sep 2004
Posts: 41
Default Re: Reading Data From the Screen

[ QUOTE ]
When they're discussing methods for writing programs to cheat at poker and/or violate the terms of service of various sites, yes.

Nothing to do with stupid content.

[/ QUOTE ]

Lets put a stop to anything any person does not like in the world. What an utopia it would be!

The only post with stupid content is yours.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.