So, I tried installing open cv version 4.1.1 to visual studio and I faced two problems: replace opencv_world410d.lib to 411 corresponding to version number and the directories are given wrong; add the proper directory where the required core.hpp etc header files are present in project properties->add project directories for include and library separately