I am getting the above error after installing opencv and making changes in Visual Studio in,
project properties->Configuration Properties->C/C++->General->Additional include Directories =>E:opencvbuildinclude
project properties->Configuration Properties->Linker->General->Additional Library Directories =>E:opencvbuildx64vc16lib
project properties->Configuration Properties->Linker->Input->Additional Dependencies =>opencv_world4100.lib,opencv_world4100d.lib
Project Properties->platform =>x64
I am getting the same error even after installing opencv by vcpkg package manager as well.
Kindly help me to resolve this.
#include <opencv2/opencv.hpp>
#include <iostream>
int main() {
cv::Mat image = cv::imread("C:/Users/Admin/Downloads/muruga.jpg");
if (image.empty()) {
std::cerr << "Error: Unable to load image!" << std::endl;
return -1;
}
cv::imshow("Image", image); // Display the image
cv::waitKey(0); // Wait for a key press
return 0;
}
Indirarajan J is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1