Images grabbing example with the vpDirectShowGrabber class.
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpImage.h>
#include <visp3/sensor/vpDirectShowGrabber.h>
int main()
{
try {
#ifdef VISP_HAVE_DIRECTSHOW
{
return EXIT_FAILURE;
}
for (;;)
#endif
return EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}
class for windows direct show devices
void acquire(vpImage< unsigned char > &I)
unsigned int getDeviceNumber()
bool setImageSize(unsigned int width, unsigned int height)
bool setFramerate(double framerate)
error that can be emitted by ViSP classes.