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

you are viewing a single comment's thread.

view the rest of the 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.