|PARP Research Group||Universidad de Murcia|
examples/AugmentedReality/AugmentedReality.cpp File Reference
A simple augmented reality example application. More...
A simple augmented reality example application.
This application estimates the intrinsic calibration and camera pose for the frames of an input video sequence, in relation with a template pattern.
The application detects the following template on the input frames:
Each frame, the planar homography which maps the original pose of the template to its location is estimated. If successful, the application obtains the camera pose, and an estimation of the camera focal distance from this homography. By averaging these focal values, a robust estimation for the camera calibration is obtained.
A standard image canvas augments the input frames with an artificial object using the estimated camera pose and intrinsic calibration:
Once compiled, the program should be used with this command line:
./AugmentedReality --URL=<path or url to video>
Definition in file AugmentedReality.cpp.