Install the c++ version of OpenCV under Windows

download

Install

Extract the contents of the installation package

  • This installation is no different from the installation of ordinary software, just click on the EXE installation package, and it can be completed in the next step

Choose where to install

Installing

  • After the installation is complete, two folders, build and source, will be generated in the installation directory. The files we need to use in the future are mainly placed in the build folder

Add environment variables

Add the following environment variables

## D:\Program\OpenCV\build\x64\vc16\bin
D:\Program\OpenCV\build\x64\vc16\lib
D:\Program\OpenCV\build\include
D:\Program\OpenCV\build\include\opencv2


after restarting the computer

view version

  • Enter the following code opencv_version on the command line to view the version of OpenCV

.(img-ifTClniM-1685430993228)]

Guess you like

Origin blog.csdn.net/u014723479/article/details/130949210