Home > front end >  "opencv_world454.dll was not found"
"opencv_world454.dll was not found"

Time:11-16

hello I had imported OpenCV into my C project but for some reason my code gives me this error.

CODE:

#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>

int main()
{
    std::string path = "Resources/test.png";
    cv::Mat img = cv::imread(path);
    imshow("Image", img);
    cv::waitKey(0);

    return 0;
}

error:

enter image description here

I think it might be because of my paths but I'm not sure I think I got them right.

enter image description here

enter image description here

enter image description here enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

CodePudding user response:

The solution was to install a new setup and install OpenCV into another path thank you to everyone who helped.

  • Related