bbenligiray / stag

STag: A Stable Fiducial Marker System
MIT License
188 stars 52 forks source link

Is there a pose estimation for calculate distance from A marker from The other marker? #27

Open kt9292 opened 1 year ago

kt9292 commented 1 year ago

Hello, Thank you for sharing amazing marker system. I tried to calculate distance between Stag markers on real world. for that, I need pose estimation function. Is there the function in your library? if not, could you give tips or help about pose estimation using stag?

bbenligiray commented 1 year ago

Hey, you should be able to do this by estimating the rotation and translation vectors (using OpenCV's solvePnP() for example), which gives you the position of the markers with respect to the camera. It feels like it would take a bit of linear algebra to find the positions of the markers with respect to each other, but I've never done it before myself so I can't really be of more help.