Ask Your Question

Center of Charuco Board

asked 2017-11-26 17:04:30 -0500

supra1 gravatar image

My end goal is to perspective transform a Charuco board and track a relatively small object that moves on the board which will cover at most 2 markers (on a size 5 by 5 square board). I would like to calculate the position of that object relative to the center of the board.

When using the Charuco board pose estimation sample from the aruco library, I notice the aruco::drawAxis() function only draws the axis at a corner of the board. My question is how would I get the 2d coordinates of the center of the board (for example, pose for an Aruco board:

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-11-26 21:57:34 -0500

Tetragramm gravatar image

You want to use the projectPoints function. You know the size of the squares of the board. So project the point (x,y,0) where x and y are the number of squares to the center * the size of the squares.

That gives you the point in the image that is the center of the board, or any point on the board if you want.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-11-26 17:03:31 -0500

Seen: 135 times

Last updated: Nov 26 '17