Код: Выделить всё
project properties->Configuration Properties->C/C++->General->Additional include Directories =>E:\opencv\build\include
project properties->Configuration Properties->Linker->General->Additional Library Directories =>E:\opencv\build\x64\vc16\lib
project properties->Configuration Properties->Linker->Input->Additional Dependencies =>opencv_world4100.lib,opencv_world4100d.lib
Project Properties->platform =>x64
Код: Выделить всё
#include
#include
int main() {
cv::Mat image = cv::imread("C:/Users/Admin/Downloads/muruga.jpg");
if (image.empty()) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79310809/how-to-resolve-cannot-open-include-file-opencv2-opencv-hpp-no-such-file-or-d[/url]
Мобильная версия