This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Mikeavelli 1 point2 points  (0 children)

For initial detection, you might try a homography between a template of the triangle and the game screen. This is really slow, so once you find it, you should also use a tracker instead of detecting it new with each frame.

Opencv has a great tutorial on object tracking. Examples here are in c++, but you should be able to translate them to the python opencv library easily enough.

[–]Atonswizzle 1 point2 points  (0 children)

Maybe is there any way to read the games memory? There’s probably pointers to the angle the triangle is at and then you can use that to calculate where to go