How to install opencv/python in windows from source

asked 2018-10-05 15:12:11 -0500

bdfy gravatar image

Hi, I want to install opencv library to python in windows support cuda. I download source opencv, cuda and cudnn library and microsoft visual studio 2017 ( cmake and python install ). My build commands:

go to source directory opencv

mkdir build

cd build

cmake .. -G "Visual Studio 15 2017 Win64" -D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D WITH_CUBLAS=1 -D CUDA_FAST_MATH=1 -D BUILD_opencv_python3=On -DCMAKE_PREFIX_PATH="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0" ../

msbuild opencv.sln /t:Build /p:Configuration=Release /v:m

what to do next? How to install python library ?

edit retag flag offensive close merge delete


doesn't it have something like msbuild opencv.sln /t:Install ?

can you add the cmake output to your question ?

you also should use -D BUILD_SHARED_LIBS=OFF , so it no more depends on external opencv dlls

berak gravatar imageberak ( 2018-10-06 03:03:26 -0500 )edit