Skip to content

Instantly share code, notes, and snippets.

@zrwang
Created April 12, 2016 14:24
Show Gist options
  • Save zrwang/f50d66fe8ccdbea0d187b33a750b770e to your computer and use it in GitHub Desktop.
Save zrwang/f50d66fe8ccdbea0d187b33a750b770e to your computer and use it in GitHub Desktop.
#include <ros/ros.h>
#include <iostream>
#include "opencv2/core/version.hpp"
int main(int argc, char ** argv)
{
ros::init(argc, argv, "opencv");
std::cout << "OpenCV version: "
<< CV_MAJOR_VERSION << "."
<< CV_MINOR_VERSION << "."
<< CV_SUBMINOR_VERSION
<< std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment