Ask Your Question
0

what is error in this question

asked Mar 1 '16

supriya123 gravatar image

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);

}

Preview: (hide)

Comments

what is error in this question ?

berak gravatar imageberak (Mar 1 '16)edit

1 answer

Sort by » oldest newest most voted
1

answered Mar 1 '16

GANESH PRASAATH L gravatar image

I executed this code. No error was shown.It really works.

Preview: (hide)

Question Tools

2 followers

Stats

Asked: Mar 1 '16

Seen: 282 times

Last updated: Mar 01 '16