1

when i run my code this error occurred : a busy cat

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

4
  • Look this answer stackoverflow.com/questions/13228762/… Commented Mar 28, 2013 at 12:45
  • Have you added the directory that contains the DLLs to the PATH? Commented Mar 28, 2013 at 12:54
  • If you're in a hurry, copy opencvcore_244.dll where your code is. If you have time, find how to add a system path to a folder and place all dlls in there for every opencv project. Commented Mar 28, 2013 at 13:39
  • i add directories in configuration properties and copy dll beside exe file but still error occurred . i test opencv in python it work but in c++ i have problem Commented Mar 28, 2013 at 14:47

1 Answer 1

1

Copy the relevant opencvcore_244.dll from your openCV installation to %systemroot%\system32 (or %systemroot%\sysWOW64 if the DLL or your program is 64 bit).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.