1 | initial version |
[before]
Mat img = imread("MyPic.JPG");
[after]
Mat img = imread("MyPic.JPG");
if(img.empty())
{
cerr << "Cannot read image file" << endl;
return -1;
}
Could you try to change your code? If the error message("Cannot read image file") appears, imread() failed.