Ask Your Question
0

How to track a 3D point with always the same distance to the tvec and get the 2D image coordinates for that

asked 2019-08-29 03:51:53 -0600

SeKa gravatar image

I have built something similiar to the follwing to track the head:

https://chris.gunawardena.id.au/softw...strong text

Lets say i want to know the Position of the nose and track it. How do i get the 2D coordinates on the Image for that?

For Example the nose is 100mm below the marker and 80 mm towards the camera.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-09-03 02:50:05 -0600

SeKa gravatar image

NVM I had a mistake in my Code.

There are 2 ways to do it. In my case all I had to do: Add my offset as object point in the function cv::projectPoints(...).

Other possibility: - Get rotation Matrix with cv::Rodrigues - tvec = rotMat * Offset + tvec - use cv::projectPoints where objectPoint is the origin (0,0,0) (Be aware you are changeing the tvec !!!)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-08-29 03:51:53 -0600

Seen: 144 times

Last updated: Sep 03 '19