A small command line installer for building OpenCV on windows with Git Bash and CMake.
Change C:\lib\Install\opencv\x64\vc15 (line 62 and 63) and CMAKE_CONFIG_GENERATOR (line 24) to match the generator you will be using (default is VS2017).
Copy and paste the commands into command prompt.
git clone https://github.com/RaymondKirk/OpenCV-InstallScript.git
OpenCV-InstallScript\install_opencv.bat