Skip to content

Instantly share code, notes, and snippets.

@ajonnet
Created November 20, 2017 13:25
Show Gist options
  • Save ajonnet/bfb67d513f869a89c6691709d75c0575 to your computer and use it in GitHub Desktop.
Save ajonnet/bfb67d513f869a89c6691709d75c0575 to your computer and use it in GitHub Desktop.
Get Opencv build information
// https://www.solarianprogrammer.com/2014/04/21/opencv-beaglebone- black-ubuntu/
// Test to check the OpenCV version
// Build on Linux with:
// g++ test_1.cpp -o test_1 -lopencv_core
#include <opencv2/opencv.hpp>
#include <iostream>
int main() {
std::cout << "Hello, OpenCV version "<< CV_VERSION << std::endl;
std::cout << cv::getBuildInformation() << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment