Ask Your Question

Revision history [back]

what is error in this question

include “stdafx.h”

include “opencv2\highgui\highgui.hpp”

include “iostream”

using namespace cv; using namespace std; int main(){

Mat im = imread("C:\\Users\\supriya123\\Desktop\\cake.jpg");
if (im.empty()){

    cout<< "Cannot load image!";
    return -1;

}

imshow("Image", im);
waitKey(0);

}