#include <visp/vpDisplayOpenCV.h>
#include <visp/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
}