Ask Your Question

Displaying openCV's windows

asked 2014-05-08 11:03:33 -0500

AntKa gravatar image

Hello, I made a program on OpenCV that used fonctions like "NamedWindow" wich display a window with GTK, or Qt, etc.. Now in my ROS program, "autopilote.cpp" i've included "<opencv2 opencv.hpp="">" and put my OpenCV code into it. It seems to correctly get the video capture, analyse it, and correctly publish results. But no windows are displaying. And I can't see somes errors or warning about this. Have you got somes advices to display the windows ? Is this feature enabled in opencv in ros ? Should I create windows in another way ? Thanks you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-08 11:09:26 -0500

tparmelee gravatar image

Have you included opencv's waitKey command after updating the windows?

From opencv user interface docs on the waitKey function:

This function is the only method in HighGUI that can fetch and handle events, so it needs to be called periodically for normal event processing unless HighGUI is used within an environment that takes care of event processing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-05-08 11:03:33 -0500

Seen: 305 times

Last updated: May 08 '14