ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The waitKey only detects keypresses from an opencv highgui window in focus. Add an imshow of nothing at all or some interesting visualization, click on it and then you should be able to type.

http://docs.opencv.org/modules/highgui/doc/user_interface.html#waitkey

The function only works if there is at least one HighGUI window created and the window is active. If there are several HighGUI windows, any of them can be active.