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