Reputation: 9338
I am trying to get a simple augmented reality app going. I have got a rig set up that allows me to detect the rotation and position of a physical webcam. I have the webcam video being pumped in to a little 3d xna app. In the app I have the virtual camera being positioned and rotated to match the real camera.
When I overlay the 3d graphics perspective lines don't seem quite line up and when I move the physical camera the 3d graphics dont track quite right.
What parameters are involved in getting the 3d graphics to line up with the real world imagery?
Upvotes: 1
Views: 915
Reputation: 42490
OpenCV includes tools and a great theoretical discussion on camera calibration models, and the approaches that can be used to correct for distortions. An inverse model could be used to distort the generated 3d mesh.
Upvotes: 2