- Download lastest version of OpenCV for Win Pack : https://opencv.org/releases.html
- Extrat to C:\
- Create New Project
- Change to X64
- Click Project Properties
- Set to [C/C++]/[General]/[Additional Include Directories] -> "C:\opencv\build\include"
- Set to [Linker]/[General]/[Additional Library Directories] -> "C:\opencv\build\x64\vc15\lib"
- Set to [Linker]/[Input]/[Additional Dependencies] -> "opencv_world401d.lib"
- I took the test image from Link