47 #include <visp3/core/vpConfig.h> 48 #include <visp3/core/vpDebug.h> 53 #if defined(VISP_HAVE_DC1394) 55 #include <visp3/sensor/vp1394TwoGrabber.h> 56 #include <visp3/io/vpImageIo.h> 57 #include <visp3/core/vpIoTools.h> 68 std::cout <<
"IEEE1394 test in progress..." << std::endl;
73 std::string outputpath =
"/tmp/" + username;
84 unsigned int ncameras;
86 for (
unsigned int i=0; i < ncameras; i++) {
89 std::cout <<
"Detected camera with GUID 0x" 90 << std::hex << guid << std::endl;
96 std::cout <<
"Use camera with GUID 0x" << std::hex << guid << std::endl;
101 for (
int i=0;i<10;i++) g.
acquire(I);
103 std::string filename = outputpath +
"/imagetest1.pgm";
104 std::cout <<
"Write image: " << filename << std::endl;
107 std::cout <<
"New connection..."<< std::endl;
111 std::cout <<
"New connection..."<< std::endl;
116 filename = outputpath +
"/imagetest2.pgm";
117 std::cout <<
"Write image: " << filename << std::endl;
121 vpCERROR <<
"Failure: exit" << std::endl;
128 vpTRACE(
"Ieee 1394 grabber capabilities are not available...\n" 129 "You should install libdc1394-2 to use this binary.") ;
static void write(const vpImage< unsigned char > &I, const char *filename)
void getNumCameras(unsigned int &ncameras) const
void acquire(vpImage< unsigned char > &I)
void open(vpImage< unsigned char > &I)
void setCamera(uint64_t camera)
Class for firewire ieee1394 video devices using libdc1394-2.x api.