OpenCV3.3+VS2017 development environment to build

OpenCV 3.3 Official Release No. 3 August, brought a lot of optimization enhancements and new features, including optimization and depth of concern neural network (DNN) module was officially introduced into the main warehouse, marking the OpenCV for DNN gained a deeper Support; Support for C++ 11 features enabled via macro ENABLE_CXX11; default includes a large number of SSE4.X and AVX/AVX2 instruction set optimizations; built-in Intel IPP version upgrade to 2017.2, official test shows nearly 15% performance improvement...etc Etc. More details can be referenced, and if your existing code is based on OpenCV 3.x, it is recommended to upgrade the version~

Compile OpenCV source code is not complicated, or very simple (relative to the old part of the project in terms), and support for Visual Studio is also very friendly, but for the first time, then the entire compilation process and process some of the switches may be some doubt. If you don't want to compile yourself, you can use official precompiled files, but some modules may not be used, so we still hope to customize the module as much as possible.

This article assumes that the reader has installed CMake and Python (2.x or 3.x)

First, prepare resources

Opencv-3.3.0-vc14.exe, it is recommended to use sourceforge download, because this gadget has a straight chain and different mirrors than github, you can use the third-party downloader to download directly, the speed is faster.

Second, prepare the source code

Run the downloaded exe directly, select the directory to extract to, and extract the sources folder. The directory structure is as follows:

OpenCV3.3+VS2017 development environment to build

Third, the production project

Open the CMake GUI, set the directory to select Configure, then select IDE (Visual Studio 2017 WIN64) and Finish, wait for the initial configuration to complete (generate cvconfig.h)...

OpenCV3.3+VS2017 development environment to build

Normally, there will be no error until Configuring done, then the above configuration item is red, suggesting that some things need to be manually changed. The basic step is to check the output. If an external library is found, such as "A library with XXX API Not found" or "Could NOT find XXX (missing XXX)", etc., according to the need to add the path of the corresponding library, or directly remove the relevant dependent compilation, you can also do 0 warnings good things ~

Here are a few tips:

First, because we are using as a library, not to debug OpenCV itself, so the development of independent and final switch off, such as BUILD_DOCS, BUILD_EXAMPLES, BUILD_XXX_TESTS, BUILD_opencv_ts (number of unit test code), BUILD_PACKAGE (CPACK_BINARY_XXX, CPACK_SOURCE_XXX), INSTALL_XXX

It said earlier C ++ 11 features support, of course, choose to open it, ENABLE_CXX11

In order to facilitate project configuration and debugging, it is recommended to open BUILD_opencv_world in the production environment and compile each OpenCV module into a world module, so that only one .lib or .dll is generated (the latter needs to open the BUILD_SHARED_LIBS switch), but in the release version. It is recommended to introduce the appropriate modules as needed to reduce the volume (unless you use each module).

If you do not involve audio and video processing, you can turn off the relevant modules, including BUILD_opencv_video, BUILD_opencv_videoio, BUILD_opencv_videostab, WITH_1394, WITH_GSTREAMER_XXX

Temperature Regulating Valve

The biggest feature of the temperature regulating valve is that it only needs an ordinary 220V power supply and uses the energy of the regulated medium to directly automatically regulate and control the temperature of steam, hot water, hot oil and gas. It can also be used to prevent overheating or heat exchange. The valve has the advantages of simple structure, convenient operation, wide temperature regulation range, fast response time and reliable sealing performance, It can be adjusted at will during operation, so it is widely used in hot water supply in chemical industry, petroleum, food, light textile, hotels and restaurants.

Temperature Regulating Valve,New Needle Valve,Marine Butterfly Valve,Valve Pressure Gauge

Taizhou Jiabo Instrument Technology Co., Ltd. , https://www.taizhoujiabo.com