Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Computer Technical Help (http://archives2.twoplustwo.com/forumdisplay.php?f=46)
-   -   Reading Data From the Screen (http://archives2.twoplustwo.com/showthread.php?t=352663)

Big_Jim 10-07-2005 04:41 PM

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

Link774 10-07-2005 04:55 PM

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.

Freakin 10-07-2005 05:41 PM

Re: Reading Data From the Screen
 
all the information you need should be written out in the hand history file in realtime

Link774 10-07-2005 05:45 PM

Re: Reading Data From the Screen
 
Heh, that's a bit easier! Good point.

Big_Jim 10-07-2005 05:59 PM

Re: Reading Data From the Screen
 
Figured it out, thanks.

10-08-2005 03:36 AM

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?

MyMindIsGoing 10-08-2005 04:03 AM

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...

TheTROLL 10-08-2005 04:18 AM

Re: Reading Data From the Screen
 
You want every thread locked where someone says something stupid? Good luck with that....

10-08-2005 05:12 AM

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.

MyMindIsGoing 10-08-2005 07:18 AM

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.


All times are GMT -4. The time now is 09:10 PM.

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