Posts

Showing posts from May, 2017

[Mac]MacOS Sierra Using CMake to Compile OpenCV 3.2 With Contrib (for C++)

Image
[Preface] OpenCV, stands for Open Source Computer Vision Library, which is a super powerful computer vision library. Start from version 1, 2 to the current 3, all the functions, features are continuous progress and update. But since it is a third-party library, the installation will be a little bit troublesome.  You can run OpenCV on the most of the OS, such as Windows, MacOS, Linux, Android, etc. This article will use MacOS Sierra as an example to compile OpenCV. Other points is that from OpenCV 3, the entire library structure has been changed to an object-oriented approach. And it seems that for the popularization and lightweight, the pre-build library from official website is the basic version, that means if you need more advanced algorithms or functions, you need to compile with contrib(extra module). Not only can use extra function, but the self-compiled library will be optimized according to your environment.