1
我是新的openCV。我用这个教程http://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/
配置它,但我使用win8
。当我写了这个基本代码:问题与opencv_highgui242.dll opencv
#include "stdafx.h"
#include "opencv2/highgui/highgui.hpp"
int _tmain(int argc, _TCHAR* argv[])
{
CvCapture* capture = 0;
IplImage* frame = 0;
while(true)
{
capture = cvCaptureFromCAM(1);
frame = cvQueryFrame(capture);
cvNamedWindow("Sample Program", CV_WINDOW_AUTOSIZE);
cvShowImage("Sample Program", frame);
int c = cvWaitKey(10);
if((char)c == 27) { exit(0); }
}
cvReleaseImage(&frame);
return 0;
}
一个对话框,此消息显示:
opencv_highgui242.dll is missing from your computer.
try re installing the program to fix this problem.
我只要做什么?
EDIT:
I solve that with adding library to my project path but i have new error:
the application was unable start correctly(0xc000007b). click ok to close the application.