Ask Your Question

Revision history [back]

while running program in vs c++ 2010 the programme compiles successssfully,but doesnot displays image and says .exe is not an internal or external command operable or batch file ,code and what i see after running is given below

Blockquote

include<opencv\cv.h>

include<opencv\highgui.h>

using namespace cv; int main() { IplImage* img = cvLoadImage("C:\Users\garry\Admin\Desktop\ab.jpg"); cvNamedWindow("a",CV_WINDOW_AUTOSIZE); cvShowImage("a",img); cvWaitKey(0); cvReleaseImage(&img); cvDestroyWindow("a"); return 0;

}![image description](/upfiles/1406911543327659.png)

click to hide/show revision 2
No.2 Revision

while running program in vs c++ 2010 the programme compiles successssfully,but doesnot displays image and says .exe Image is not an internal or external command operable or batch file ,code and what i see after running is given belowdisplay using VS 2010 with OpenCV

BlockquoteBelow is my program

include<opencv\cv.h>

include<opencv\highgui.h>

#include<opencv\cv.h>
#include<opencv\highgui.h>
using namespace cv;
int main()
{
    IplImage* img = cvLoadImage("C:\Users\garry\Admin\Desktop\ab.jpg");
cvLoadImage("C:\\Users\\garry\\Admin\\Desktop\\ab.jpg");
    cvNamedWindow("a",CV_WINDOW_AUTOSIZE);
    cvShowImage("a",img);
    cvWaitKey(0);
    cvReleaseImage(&img);
    cvDestroyWindow("a");
    return 0;

0;

}![image description](/upfiles/1406911543327659.png)