

To build the OpenCV source code, a compiler is required. To have access to the latest OpenCV functionality, you will also want to download the contrib modules. The 4.2.0 source can be downloaded from OpenCV’s GitHub page. At the time of writing, the latest version of OpenCV is 4.2.0. The first step is to download the source code. This article assumes you want to build from source and explains the full process on Windows 10.
#OPENCV CMAKE LINUX INSTALL#
Installing the pre-built binaries is a great way to get started quickly however you will probably want to customize the install eventually as you get more familiar with what OpenCV has to offer.

You want more control over the installation, for example which libraries and wrappers are included and which platforms are targeted.The pre-built Windows distribution contains binary libraries for release builds only therefore, if you want to debug, you need to build from source. You want to be able to debug OpenCV code and step into OpenCV functions.There are however a number of reasons why you may want to build from source: The easiest way to get up and running quickly is to install the pre-built binaries. We can install pre-built binaries or perform our own build from source. When installing OpenCV on Windows, we have two options. In this article we’ll step through a full build-from-source installation on Windows 10, including setting up Python and C++ development environments. Installing OpenCV however is notoriously tricky. For developers wishing to explore computer vision, OpenCV is the best place to start.
