43 #include <visp3/core/vpConfig.h>
44 #include <visp3/core/vpDebug.h>
49 #if defined(VISP_HAVE_DC1394)
51 #include <visp3/core/vpIoTools.h>
52 #include <visp3/io/vpImageIo.h>
53 #include <visp3/sensor/vp1394TwoGrabber.h>
63 std::cout <<
"IEEE1394 test in progress..." << std::endl;
68 std::string outputpath =
"/tmp/" + username;
79 unsigned int ncameras;
81 for (
unsigned int i = 0; i < ncameras; i++) {
84 std::cout <<
"Detected camera with GUID 0x" << std::hex << guid << std::endl;
90 std::cout <<
"Use camera with GUID 0x" << std::hex << guid << std::endl;
96 for (
int i = 0; i < 10; i++)
99 std::string filename = outputpath +
"/imagetest1.pgm";
100 std::cout <<
"Write image: " << filename << std::endl;
103 std::cout <<
"New connection..." << std::endl;
107 std::cout <<
"New connection..." << std::endl;
112 filename = outputpath +
"/imagetest2.pgm";
113 std::cout <<
"Write image: " << filename << std::endl;
116 vpCERROR <<
"Failure: exit" << std::endl;
122 vpTRACE(
"Ieee 1394 grabber capabilities are not available...\n"
123 "You should install libdc1394-2 to use this binary.");
Class for firewire ieee1394 video devices using libdc1394-2.x api.
void acquire(vpImage< unsigned char > &I)
void setCamera(uint64_t camera)
void getNumCameras(unsigned int &ncameras) const
void open(vpImage< unsigned char > &I)
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)