1

私はopenCVが初めてです。このチュートリアルで構成しますhttp://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/が、使用しますwin8。この基本的なコードを書いたとき:

#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.
4

1 に答える 1

2

私は問題を見つけました:問題は次のとおりでしたenvironment Variables:私は新しい変数を作成し、それらに値をコピーしましたが、パス変数を編集する(if exiting)か、名前パス(if not exist)で新しい変数を作成してコピーする必要があります:

C:\OpenCV-2.4.2\opencv\build\x64\vc10\bin\;C:\OpenCV2.4.2\opencv\build\common\tbb\intel64\vc10\; to that if path exist

 and copy  ;C:\OpenCV-2.4.2\opencv\build\x64\vc10\bin\;C:\OpenCV-2.4.2\opencv\build\common\tbb\intel64\vc10\; if not exist.
于 2013-03-03T21:18:08.127 に答える