Ask Your Question

Unexpected program flow ? Line 4 executes before line 3 !! In other words waitkey does not wait at least for capture.Win32 opencv3.0 c++ v.s.2015

asked 2017-01-24 03:44:55 -0500

Oguz gravatar image
namedWindow("DISPARITY", 0);
cout << "left....";
capture >> imgLeft;
edit retag flag offensive close merge delete


  • waitKey(0) should wait forever.
  • did you build your own opencv libs ? (there are no prebuilt ones for 32bit, afaik)
berak gravatar imageberak ( 2017-01-24 03:52:06 -0500 )edit

I think 3.0.0 is the last one for win 32. After I see a "left.." on the screen I take my glasses off and press a key .But i see myself with eyeglasses on the captured image ? Thnks.

Oguz gravatar imageOguz ( 2017-01-24 09:54:02 -0500 )edit

@Oguz, welcome on board! For your next question, please use short title and post your question in the text area. A small tour on FAQ also is useful.

pklab gravatar imagepklab ( 2017-01-24 10:41:24 -0500 )edit

Sorry for inconvenience.

Oguz gravatar imageOguz ( 2017-01-24 11:39:23 -0500 )edit

@Oguz, don't worry... and, if any question gets right/helpful answer, the author of the question is allowed to accept the answer that helped him the most, This ensures that the question doesn't stay open.

pklab gravatar imagepklab ( 2017-01-25 02:31:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-01-24 10:38:21 -0500

pklab gravatar image

waitKey does nothing with namedWindow. You have to call some imshow

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-01-24 03:44:55 -0500

Seen: 99 times

Last updated: Jan 24 '17