Use scripts from Install OpenCV 3.4.4 on Windows (C++ and Python)
Three native python scripts:
- main.py
- installOpenCV.bat:
- modifyBatchScripy.py
How to use:
python main.py
: generate new ‘installOpenCV_modified.bat’- run
installOpenCV_modified.bat
: generate runScript.bat (DO NOT RUN IT!!)python modifyBatchScript.py
: generatefinalScript.bat
by modifyrunScript.bat
- run
finalScript.bat
Quirks on Windows 10
- Has to run Anaconda Prompt as Administrator, so as to have write access to C:\ProgramData\Anaconda3\xxx
- Administrator account did not include path to CMake, git etc.
- path
PATH=C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\condabin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Couchapp;C:\Program Files\Microsoft VS Code\bin;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\GitExtensions;C:\Program Files\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86;C:\Users\Administrator.Z220-LONGZHENFR\AppData\Local\Microsoft\WindowsApps;c:\SecurityGate\website\jdk1.7.0_79\bin
- set PATH=%PATH%;C:\Users\longzhen.li\AppData\Local\Programs\Git\cmd;
- python.exe-Entry Point Not Found
The procedure entry point OPENSSL_sk_new_reserve could not be
located in the dynamic link library.
C:\Users\abc\Anaconda3\Library\bin\libssl11_-x64.dll
How to Fix Entry Point Not Found while installing libraries in conda environment
as it is suggested in this here I could solve this problem by copying libssl-1_1-x64 dlls in Anaconda/DLLS to Anaconda/Library/bin (probably replacing it)
I got the same issue while updating Anaconda navigator, and got it over by replacing the file libssl-1_1-x64.dll in Anaconda3/Library/bin with the one from Anaconda3/DLLs.
libssl-1_1-x64.dll
from C:\ProgramData\Anaconda3\DLLs
to C:\ProgramData\Anaconda3\Library\bin
- Reason: conda update the new
libssl-1_1-x64.dll
but it’s not working!!
- stuck on
opencl_kernels_dnn
for over 3 hours… right click on the console (try to copy the console outputs) make it running again!!