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 |
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.
|
Re: Reading Data From the Screen
all the information you need should be written out in the hand history file in realtime
|
Re: Reading Data From the Screen
Heh, that's a bit easier! Good point.
|
Re: Reading Data From the Screen
Figured it out, thanks.
|
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? |
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... |
Re: Reading Data From the Screen
You want every thread locked where someone says something stupid? Good luck with that....
|
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. |
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.