1 | initial version |
Which version of OpenCV are you using? Try using the latest openCV stable version 2.4.5 and use the C++ style API.
#include "stdafx.h"
#include "opencv/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
int main()
{
Mat img = imread("C:/Users/Shyama Panolth/Pictures/Images/Hardeep Singh.jpg");
imshow("MyWindow", img);
waitKey(0);
return 0;
}
This works in VS2012 for me with the same error a simple warning. It is depricated code but you should still be able to use it.