#include <visp3/core/vpPixelMeterConversion.h>
#include <visp3/detection/vpDetectorQRCode.h>
#include <visp3/gui/vpDisplayGDI.h>
#include <visp3/gui/vpDisplayOpenCV.h>
#include <visp3/gui/vpDisplayX.h>
#include <visp3/io/vpImageIo.h>
#include <visp3/vision/vpPose.h>
#include "pose_helper.h"
int main()
{
#if defined(VISP_HAVE_ZBAR)
try {
#if defined(VISP_HAVE_X11)
#elif defined(VISP_HAVE_GDI)
#elif defined(VISP_HAVE_OPENCV)
#endif
std::vector<vpPoint> point;
point.push_back(
vpPoint(-0.06, -0.06, 0));
point.push_back(
vpPoint( 0.06, -0.06, 0));
point.push_back(
vpPoint( 0.06, 0.06, 0));
point.push_back(
vpPoint(-0.06, 0.06, 0));
bool init = true;
while (1) {
bool status = detector.
detect(I);
std::ostringstream legend;
if (status) {
std::vector<vpImagePoint> p = detector.
getPolygon(i);
for (size_t j = 0; j < p.size(); j++) {
std::ostringstream number;
number << j;
}
computePose(point, p, cam, init, cMo);
}
}
break;
}
std::cout <<
"Catch an exception: " << e.
getMessage() << std::endl;
}
#else
std::cout << "ViSP is not build with zbar 3rd party." << std::endl;
#endif
}