Ask Your Question

small_but_strong's profile - activity

2017-09-12 09:25:14 -0600 marked best answer im a beginner of opencv. plz help me

i've just installed opencv 3.3 ver and visual studio 17

whenever i run this code

include "cv.hpp"

include "iostream"

using namespace std; using namespace cv;

int main() {

Mat img;

img = imread("lena.png", 1);
if (img.empty())
    return -1;

imshow("img", img);


waitKey();
return 0;

}

a gary window advent but disappear without displaying lena.png.

i read others' code. some write namedWindow. others don't

but their results are same.

what is problem?? code ?? or settings?

2017-09-12 08:53:34 -0600 commented question im a beginner of opencv. plz help me

thanks for replying. i placed lena.png on right forder where the project is. so if i add namedWindow statement it works

2017-09-12 08:36:09 -0600 asked a question im a beginner of opencv. plz help me

im a beginner of opencv. plz help me i've just installed opencv 3.3 ver and visual studio 17 whenever i run this code

2017-09-12 08:36:08 -0600 asked a question im a beginner of opencv. plz help me

im a beginner of opencv. plz help me i've just installed opencv 3.3 ver and visual studio 17 whenever i run this code