简体   繁体   English

运行OpenCv代码时出现系统错误“由于缺少opencv_core244.dll,因此无法启动程序”

[英]System Error When Run OpenCv Code “The program can't start because opencv_core244.dll is missing”

when i run my code this error occurred : 当我运行我的代码时,发生此错误: 忙碌的猫

and my code is : 我的代码是:

#include "cv.h"
#include "highgui.h"

using namespace cv;

int main(int, char**)
{
    VideoCapture cap(0);
    if(!cap.isOpened()) return -1;

    Mat frame, edges;
    namedWindow("edges",1);
    for(;;)
    {
        cap >> frame;
        cvtColor(frame, edges, CV_BGR2GRAY);
        GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5);
        Canny(edges, edges, 0, 30, 3);
        imshow("edges", edges);
        if(waitKey(30) >= 0) break;
    }
    return 0;
}

i check opencv bin and dll's but this dll exist 我检查opencv bin和dll,但此dll存在

将相关的opencvcore_244.dll从openCV安装复制到%systemroot%\\ system32(如果DLL或程序是64位,则复制到%systemroot%\\ sysWOW64)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 程序无法启动因为缺少opencv_core2410d.dll - The program can't start because opencv_core2410d.dll is missing “程序无法启动,因为您的计算机中缺少 opencv_world300.dll”错误 C++ - "The program can't start because opencv_world300.dll is missing from your computer" error in C++ 我无法在VS2010上运行openCV2.3.1,因为找不到opencv_core231d.dll - I can't run openCV2.3.1 with VS2010 because opencv_core231d.dll was not found 无法启动程序,因为缺少 Qt5Cored.dll - Can't start a Program because Qt5Cored.dll is missing VS:程序无法启动,因为缺少libfftw3-3.dll - VS: Program can't start because missing libfftw3-3.dll 该程序无法启动,因为缺少msvcr100.dll - the program can't start because msvcr100.dll is missing 程序无法启动,因为缺少* .dll - MinGW,Eclipse,Windows 7 - Program can't start because *.dll is missing - MinGW, Eclipse, Windows 7 Visual Studio c ++ LoadLibary错误:无法启动程序,因为计算机中缺少dll - Visual Studio c++ LoadLibary error: The program can't start because dll is missing from your computer 无法使用Eclipse运行简单的程序Opencv 3.1(链接错误) - Can't Run simple program Opencv 3.1 with Eclipse (Linking error) 由于您的计算机上缺少freeglut.dll,因此无法启动该程序 - This program can't start because freeglut.dll is missing from your computer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM