[Programming]Graphic Recognition

Joined
Aug 6, 2009
Messages
2,158
Reaction score
450
I was thinking about making a program/soft (not bot/etc) for game called project torque. In race mode there is guide line during the race which shows you where to increase speed, etc.

I was thinking about making a auto-drive mode for it. Basically program should detect where to drive based on those guide lines.
I know what to do when guidelines are detected, but I dono how to detect them.

Basically here is how guidelines look: http://screenshot.xfire.com/screenshot/large/8fa1a1c8650da075456b81d2f070906e307352ae.jpg

If it will work in-game then I know how I can apply it in real life ;)

Thanks
 
I haven't attempted anything like this, so I don't have any actual touch to the area, so take my post as such...

If you have no clue where to start, you may be facing a problem out of your league. You could read this for starters to get an idea of how big a project it'll be: [ame]http://en.wikipedia.org/wiki/Image_analysis[/ame]


Especially this statement might have you troubled, "human analysts still cannot be replaced by computers".

Of course, the trace in the game is all green, which could be used to your advantage with lesser than valid image analysis algorithms: if you're able to detect with some accuracy where the green area begins, you should be able to form the curve.
 
Last edited:
Edge detection is easy, you can use a rudimentory neural network for it. Hell, our very own optical nerve already has edge-detection build in which does some basic processing before an image you see ever even reaches the visual cortex.

In case the TS hasn't noticed: real life doesn't look like that. Real life has other users on the road, it isn't just a few odd colors, and it definately doesn't have guidelines. Most you can hope for (and what is being used in fact by most autonomous car systems) are roadmarkers (stripes on the road, edge to walkways, etc) but those won't tell you much about how hard you can (or in fact should) be driving.

If it's just for ingame fun: try to get a direct memory hook into the game, that'll allow you to readout the information directly from memory instead of having to waste a LOT of cpu power to process the image. I very much doubt you could pull that off in realtime anyway.
 
Back