Ask Your Question
-1

Calculate orientaiton given 3 points

asked 2017-09-04 08:55:58 -0500

GregBe gravatar image

Hi, I know it basically is something that one should conclude going step by step with API but somehow I cannot manage so I hope someone can guide me through...

The assumption is that I have triangle equal arms, known size and i rotate it in my hand. I would like to get it orientation like in video below https://www.youtube.com/watch?v=wVPcX...

If triangle is not good then other shape can be good enough. the point is that I would like to make something to keep in in hand and be able to manipulate a'la controller. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-09-04 13:08:02 -0500

Tetragramm gravatar image

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-09-04 08:55:58 -0500

Seen: 149 times

Last updated: Sep 04 '17