1 #include <opencv2/core/utility.hpp>
6 "{ b build | | print complete build info }"
7 "{ h help | | print this help }"
10 int main(int argc, const char* argv[])
12 cv::CommandLineParser parser(argc, argv, keys);
14 if (parser.has("help"))
16 parser.printMessage();
18 else if (!parser.check())
22 else if (parser.has("build"))
24 std::cout << cv::getBuildInformation() << std::endl;
28 std::cout << "Welcome to OpenCV " << CV_VERSION << std::endl;