If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Recognize a picture and make a command

Hi there professional guys,

Im sitting here and Im facinated by C++ and Im eager to learn more about this wonderful program.
So, I have a couple of friends that also want to learn about this and we have been given eachother different taskt so we learn about different things to teach eachother.

My task is to make a small program that recognize different parts on the screen and depending on the picture of screen to make a click on a specified place on the screen or make a command that does the same thing (im not sure how that works)

Why this task:

A friend of a friend of me created a small game, and this task is going to be a kind of bot to play the game by itself.

So is there any possibility to make such a bot with C++?
If not, can you give me a suggestion to a program that allow me to make it?

Re: Recognize a picture and make a command

Its a small cardgame (player vs player) so that a card (as a normal playing card) should come up for each, and you can choose to keep the card, take a new one or bet you have a higher card than the opponent.

The scores will be saved and I want the bot to recognize each card and decide by itself to keep it, take a new one or bet.

So my goal is to make one. Dont blame me for beeing a noob that is trying to learn something difficult, but Im in for this, even if it will take a long time to make.

Re: Recognize a picture and make a command

So my goal is to make one. Dont blame me for beeing a noob that is trying to learn something difficult, but Im in for this, even if it will take a long time to make.

To add what GCDEF states:

To write such a thing that you're trying to write requires many goals to be accomplished, and writing many programs that may have absolutely nothing to do with card games and face recognition. Learning C++ programming doesn't work that way, where you focus on one application and everything is geared to this one "ultimate goal".

A person who could write the program that you described would be able to write any C++ program. As long as that person knows the field of study he or she is in, C++ is just a tool to get something accomplished.

Re: Recognize a picture and make a command

As I see it, there are three steps here:

1) Acquire a screengrab from a program other than the one running. Probably possible, but I don't know the details on how you'd do it.
2) Search the screengrab for a particular image. Depending on how precisely you know the scale and contents of this sub-image, there are several possible approaches. If you know it precisely, an MSE search over an image pyramid would probably do it. This would be a fairly straightforward task....for someone who knows the theory of image pyramids and is familiar with C++. For a newbie, it's likely to be a major hurtle.
3) If the image is detected, send some kind of message to the window where it was found. Again, probably doable but not my area of expertise.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.