Hi, first time poster. I've been thinking about a project for a few weeks. What I want to do is take a screenshot of my display and then grab some text off of it. This is for a game that I want to keep track of player activity and possibly other things.
What happens now is when someone logs in, a message is sent to everyone. What I am looking to do is find a way to save all these logging in and out messages and the time at which it happens. Then come back later and crunch out the amount of time that the person was in game. Through the game you can only tell the last time someone logs in and not how long they have played which is why I am interesting in this. This process would have to happen probably a minimum of 5-10 times a second which is why I don't want to store the screenshots to disk.
I haven't done a lot of graphical or system programming before (mostly just embedded stuff and a few exploratory projects) so I'm not sure which language would be best or if there is a decent starting point available. OCR looks like the way to go but like I said, I don't know how to get the screen or send it anywhere. I also looked into tracking the packets but the ones I want are encrypted and I didn't really want to get into all of that.
Any help or if someone could point me in the right direction would be greatly appreciated.
1 reply to this topic
#1
Posted 05 December 2010 - 09:40 AM
|
|
|
#2
Posted 06 December 2010 - 04:53 AM
Hi,
It's much better if you could provide some information of the environment. For example what OS are you using, whether you are using special library (Direct-X, OpenGL, or..?).
About screen capture, this tutorial I have made maybe useful for you (note that although the implementation is in Delphi/Object Pascal but the theory I explained can be used in any other language).
OCR process usually took long time, therefore I suggest you do it in other thread or even other process. So don't immediately process the image after capturing the screen. Store them inside a thread safe container and notify/wake up the processing thread/process to process them. This way the process of capturing screen, which must be done about 10 times in a second, won't be blocked by OCR processing.
But before you decide to go with OCR option, you better research on the game first. Perhaps you can tap to its messages and can capture the raw log messages. This option is more reliable and easier to process.
It's much better if you could provide some information of the environment. For example what OS are you using, whether you are using special library (Direct-X, OpenGL, or..?).
About screen capture, this tutorial I have made maybe useful for you (note that although the implementation is in Delphi/Object Pascal but the theory I explained can be used in any other language).
OCR process usually took long time, therefore I suggest you do it in other thread or even other process. So don't immediately process the image after capturing the screen. Store them inside a thread safe container and notify/wake up the processing thread/process to process them. This way the process of capturing screen, which must be done about 10 times in a second, won't be blocked by OCR processing.
But before you decide to go with OCR option, you better research on the game first. Perhaps you can tap to its messages and can capture the raw log messages. This option is more reliable and easier to process.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









