PARP Research Group Universidad de Murcia


examples/AugmentedReality/AugmentedReality.cpp File Reference

A simple augmented reality example application. More...

#include <QVApplication>
#include <QVDefaultGUI>
#include <QVVideoReaderBlock>
#include <QVImageCanvas>
#include <QVNumericPlot>
#include <QVProcessingBlock>
#include <QVImage>
#include <QVPolyline>
#include <QVPolylineF>
#include <QVMatrix>
#include <qvipp.h>
#include <qvip.h>
#include <qvprojective.h>
#include <GL/glut.h>
#include <QVCameraPose>
#include <QV3DModel>
#include <qv3dobjects.h>

Go to the source code of this file.


Detailed Description

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:

template.png

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:

teapot.png

Usage

Once compiled, the program should be used with this command line:

        ./AugmentedReality --URL=<path or url to video>
Parameters:
URL Video source identification string. See section QVMPlayerURLFormat for further info about its format.
Author:
PARP Research Group. University of Murcia, Spain.

Definition in file AugmentedReality.cpp.




QVision framework. PARP research group. Copyright © 2007, 2008, 2009, 2010, 2011.