int main(int argc, char* argv[]) { ros::init(argc, argv, "ros_apriltags_node"); Demo demo; process_flag = false; // process command line options demo.parseOptions(argc, argv); demo.setup(); if (demo.isVideo()) { cout << "Processing video" << endl; // setup image source, window for drawing, serial port... //demo.setupVideo(); //ros::spinOnce(); // the actual processing loop where tags are detected and visualized demo.loop(); } else { cout << "Processing image" << endl; // process single image demo.loadImages(); } return 0; }
// here is were everything begins int main(int argc, char* argv[]) { Demo demo; // process command line options demo.parseOptions(argc, argv); demo.setup(); if (demo.isVideo()) { cout << "Processing video" << endl; // setup image source, window for drawing, serial port... demo.setupVideo(); // the actual processing loop where tags are detected and visualized demo.loop(); } else { cout << "Processing image" << endl; // process single image demo.loadImages(); } return 0; }
// here is were everything begins int main(int argc, char* argv[]) { Demo demo; // process command line options demo.parseOptions(argc, argv); // setup image source, window for drawing, serial port... demo.setup(); // the actual processing loop where tags are detected and visualized demo.loop(); return 0; }