Ask Your Question
0

opencv imshow error

asked 2013-11-18 02:58:40 -0600

ali_ahmet gravatar image

updated 2020-10-26 10:06:46 -0600

hi when ı run this code ı take an error at the below

    KernelBase.dll!_RaiseException@16()    Unknown
    msvcr100d.dll!_CxxThrowException(void * pExceptionObject, const _s__ThrowInfo * pThrowInfo) Line 157    C++
    image   {flags=1124007936 dims=0 rows=0 ...}    cv::Mat

    cap <Information not available, no symbols loaded for opencv_highgui247d.dll>   cv::VideoCapture

what is the problem with this?

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

using namespace cv;


int main()
{
             Mat image;
             VideoCapture cap;
             cap.open(0);

             namedWindow("imge" , WINDOW_AUTOSIZE);

             while(1)
             {
                          cap>>image;
                          imshow("imge",image);
                          waitKey(33);
             }

}
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2013-11-18 04:03:18 -0600

It looks like OpenCV was built without UI support. If you use Linux try to install development files for Qt or GTK and rebuild OpenCV with UI support.

edit flag offensive delete link more
0

answered 2013-11-18 03:18:56 -0600

updated 2013-11-18 04:00:52 -0600

First add #include <opencv2/opencv.hpp> and remove all other opencv includes, but that looks to me like "dll hell" ... Check your DLL paths and libs.

(if you use 32bit dll and 64bit libs it will never run correctly)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-11-18 02:58:40 -0600

Seen: 2,650 times

Last updated: Nov 18 '13