Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HERE is the opencv tutorial that calculates pose for an arbitrary object. You can of course adapt this to whatever shape you want, although the 3 points of a triangle may not be enough. I'm pretty sure all the algorithms require at least 4 points, which means the center, or a point along one of the arms of the triangle.