Ask Your Question

Revision history [back]

A great help. Thanks a lot. I had spent lot of time, though learned the hard way.

Only getting one problem in Debug : My system is windows 7 , 64 bit using VS 2010 and OpenCV 2.4.8

Error 1 error LNK1181: cannot open input file 'opencv_calib3d248d.dll' C:\Users\world\project\ver1\LINK ver1

image description I am trying this code : taken from web site

include "stdafx.h"

include <cv.h>

include <highgui.h>

include <math.h>

include <opencv2 highgui="" highgui.hpp="">

using namespace cv;

int main() { int k; VideoCapture cap = VideoCapture(0); while(1) { Mat img; cap >> img; imshow("image",img);

    k = waitKey(10);
    if (k == 27)         {
        break;
    }
}
return 0;

}

This program builds successfully in 64 bit , but on when I try to start without debugging I get this error OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file ......\opencv248\opencv\sources\modules\highgui\src\window.cpp, line 261 Press any key to continue . . . image description Similarly, I had developed a project in university times using 32 bit on the same system i.e., Win7, 32 bit with VS2010 , it works fine in VS2010 with same configuration but when I try to build it in 64 bit it gives same error message. Can you guide me. Rest all is OK. Thanks