Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

why CMake!

Hi I downloaded the OpenCV 2.4.6, extracted in C:\openCV246. I want to use visual studio 2012. using the tutorial in the youtube link : http://youtu.be/cgo0UitHfp8

first I am really confused, when I can call libraries after extraction of opencv.exe file why should I suffer to build the opencv using cmake?!

then I added several libraries as instructed in the tutorial to simply capture video from my laptop camera. `#include<opencv\cv.h>

include<opencv\highgui.h>

using namespace cv;

int main() { Mat img; VideoCapture cap; cap.open(0); namedWindow("window",1); while(1) { cap>>img; imshow("window",img); waitKey(33);
}

return 0;

}`

but when it reaches the imshow("window", img); it returns an unhandled exception whivh I don't understand!

I appreciate any help to figure out these. regards

why CMake!

Hi I downloaded the OpenCV 2.4.6, extracted in C:\openCV246. I want to use visual studio 2012. using the tutorial in the youtube link : http://youtu.be/cgo0UitHfp8

first I am really confused, when I can call libraries after extraction of opencv.exe file why should I suffer to build the opencv using cmake?!

then I added several libraries as instructed in the tutorial to simply capture video from my laptop camera. `#include<opencv\cv.h>

include<opencv\highgui.h>

using namespace cv;

int main() { Mat img; VideoCapture cap; cap.open(0); namedWindow("window",1); while(1) { cap>>img; imshow("window",img); waitKey(33);
}

return 0;

}`

but when it reaches the imshow("window", img); it returns an unhandled exception whivh which I don't understand!

I appreciate any help to figure out these. regards

why CMake!

Hi I downloaded the OpenCV 2.4.6, extracted in C:\openCV246. I want to use visual studio 2012. using the tutorial in the youtube link : http://youtu.be/cgo0UitHfp8

first I am really confused, when I can call libraries after extraction of opencv.exe file why should I suffer to build the opencv using cmake?!

then I added several libraries as instructed in the tutorial to simply capture video from my laptop camera. `#include<opencv\cv.h>

include<opencv\highgui.h>

#include<opencv\cv.h>
#include<opencv\highgui.h>

using namespace cv;

cv; int main() { Mat img; VideoCapture cap; cap.open(0); namedWindow("window",1); while(1) { cap>>img; imshow("window",img); waitKey(33);
}

       
    }

    return 0;
}

}`

but when it reaches the imshow("window", img); it returns an unhandled exception which I don't understand!

I appreciate any help to figure out these. regards

click to hide/show revision 4
retagged

why CMake!

Hi I downloaded the OpenCV 2.4.6, extracted in C:\openCV246. I want to use visual studio 2012. using the tutorial in the youtube link : http://youtu.be/cgo0UitHfp8

first I am really confused, when I can call libraries after extraction of opencv.exe file why should I suffer to build the opencv using cmake?!

then I added several libraries as instructed in the tutorial to simply capture video from my laptop camera.

#include<opencv\cv.h>
#include<opencv\highgui.h>

using namespace cv;

int main()
{
    Mat img;
    VideoCapture cap;
    cap.open(0);
    namedWindow("window",1);
    while(1)
    {
        cap>>img;
        imshow("window",img);
        waitKey(33);        
    }

    return 0;
}

but when it reaches the imshow("window", img); it returns an unhandled exception which I don't understand!

I appreciate any help to figure out these. regards