OpenCV 4 + Windows + Mingw + VSCode

Installing OpenCV 4 on Linux is difficult, but can be done. On Windows it took me hours to get it working. Download [VS Code][1] [mingw-w64][2] [OpenCV 4.1.1 (mingw edition)][3] [set_env.bat][4] Installation install opencv extract opencv[…].zip copy to D:\OpenCV\ install vscode VSCodeUserSetup-[...].exe install cpp-tools in vscode ctrl + shift + x search for: β€œc++” install β€œc/c++” from Microsoft install mingw mingw-w64-install.exe – install to D:\mingw\ (IMPORTANT: don’t use spaces in name) options: (version: 8....

September 8, 2019 Β· 1 min Β· Anton Bracke