#include <visp3/gui/vpDisplayOpenCV.h>
#include <visp3/sensor/vpOpenCVGrabber.h>
int main()
{
#if defined(VISP_HAVE_OPENCV) && (VISP_HAVE_OPENCV_VERSION < 0x020408)
try {
vpOpenCVGrabber g;
g.open(I);
while(1) {
g.acquire(I);
break;
}
}
std::cout << "Catch an exception: " << e << std::endl;
}
#endif
}