相关疑难解决方法(0)

"程序无法启动,因为您的计算机缺少opencv_world300.dll"C++中的错误

我想在Visual Studio 2013中编译一个opencv Console C++程序.这是我的代码:

#include "stdafx.h"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, const char** argv)
{
    Mat img = imread("rgb_1.png", CV_LOAD_IMAGE_UNCHANGED); //read the image data in the file "MyPic.JPG" and store it in 'img'

    if (img.empty()) //check whether the image is loaded or not
    {
        cout << "Error : Image cannot be loaded..!!" << endl;
        //system("pause"); //wait for a key press
        return -1;
    }

    namedWindow("MyWindow", CV_WINDOW_AUTOSIZE); //create a window with the name …
Run Code Online (Sandbox Code Playgroud)

c++ opencv visual-studio-2013

18
推荐指数
5
解决办法
6万
查看次数

标签 统计

c++ ×1

opencv ×1

visual-studio-2013 ×1