Ask Your Question

Aruco determine position of a 2d point relative to marker

asked 2017-11-08 17:03:17 -0500

cxplanet gravatar image

I have a calibrated camera looking down upon a floor, where I have placed an aruco marker. I have detected the marker, and been able to draw axis on the rvec and tvec found in estimatePoseSingleMarker. I can create a grid of 'real world' object points from the center of the aruco that are projected onto the image such that the location of another object on the same surface can be identified as belonging within a particular grid tile.

Ideally though, what I would like to do is determine the actual distance from a given pixel known to be on the floor to the center of the Aruco. I would appreciate any understanding of the correct approach for this problem.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-11-08 18:39:07 -0500

Tetragramm gravatar image

From the pose, you can project the Line of Sight of any given pixel into the world. Then you project that LOS to z = 0, and that's where it intersects with the "ground" plane. If you are using estimatePoseSingleMarker, that is the same as the plane of the marker.

If your markerLength is correct, then you have that point's location relative to the center of the marker.

edit flag offensive delete link more


Thanks so much for the explanation.

cxplanet gravatar imagecxplanet ( 2017-11-08 19:13:53 -0500 )edit

Question Tools

1 follower


Asked: 2017-11-08 17:03:17 -0500

Seen: 578 times

Last updated: Nov 08 '17