Ask Your Question

ali_ahmet's profile - activity

2020-10-26 10:05:57 -0600 received badge  Popular Question (source)
2013-11-18 02:58:40 -0600 asked a question opencv imshow error

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);
             }

}