相关疑难解决方法(0)

为Visual Studio 2010设置OpenCV-2.3

我正在尝试使用Visual Studio 2010 Express的opencv 2.3.我的代码来自示例:

#include "stdafx.h"
#include <highgui.h>

int _tmain(int argc, _TCHAR* argv[])
{
    int c;
    // allocate memory for an image
    IplImage *img;
    // capture from video device #1
    CvCapture* capture = cvCaptureFromCAM(1);
    // create a window to display the images
    cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE);
    // position the window
    cvMoveWindow("mainWin", 5, 5);
    while(1)
    {
        // retrieve the captured frame
        img=cvQueryFrame(capture);
        // show the image in the window
        cvShowImage("mainWin", img );
        // wait 10 ms for a key to be pressed …
Run Code Online (Sandbox Code Playgroud)

c c++ opencv visual-studio-2010 visual-studio

36
推荐指数
1
解决办法
7万
查看次数

标签 统计

c ×1

c++ ×1

opencv ×1

visual-studio ×1

visual-studio-2010 ×1