find OpenCV build information

https://www.learnopencv.com/get-opencv-build-information-getbuildinformation/

How to find OpenCV build information using C++ ?

The code for obtaining build information is shared below.

#include <opencv2/opencv.hpp>
int main(void)
{
  std::cout << cv::getBuildInformation() << std::endl;
}

How to find OpenCV build information using Python?

The code for obtaining build information using python is shared below.

import cv2
print cv2.getBuildInformation()

猜你喜欢

转载自blog.csdn.net/grllery/article/details/83868846