AprilRobotics / apriltag

AprilTag is a visual fiducial system popular for robotics research.
https://april.eecs.umich.edu/software/apriltag
Other
1.56k stars 535 forks source link

How to use intrinsics in Scaramuzza format to estimate the apriltag pose? #306

Closed Ttester007 closed 4 months ago

Ttester007 commented 9 months ago

Hi,

Instead of camera matrix K and distortion coefficient vector D, I have the camera intrinsics in Scaramuzza format (polynomial coefficients, Inverse Polynomial coefficients, affine coefficients and Principal point). Is there any way to use these intrinsics to detect the april tag and estimate the pose accurately?

For your reference, Scaramuzza Model details can be found here : link

Thanks

christian-rauch commented 9 months ago

Is this specifically about omnidirectional cameras? I have no experience using omnidirectional cameras so I won't be able to answer all your questions. AFAIK, the apriltag library does not support omnidirectional cameras directly out of the box.

The apriltag library expects rectified images to detect the tags. At least, you have to rectify the images and provide them to the library to detect the tags. To estimate the pose, you will need the camera parameters, which is currently only implemented for the pinhole camera model.

Ttester007 commented 9 months ago

Thanks for the reply. Is there any way we can do modification to april tag detector library so that we can use Scaramuzza format intrinsics?

christian-rauch commented 9 months ago

Sure. If you know how to handle the format and estimate the pose, you can send a PR to this repo. Please include example data with the ground truth pose in the PR.