How to use 'waitkey opencv' in Python

Every line of 'waitkey opencv' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
264def wait_for_key(stdscr):
265 curses.init_pair(1, curses.COLOR_RED, curses.COLOR_WHITE)
266 stdscr.addstr(0,0, "Press any key to stop!", curses.color_pair(1) )
267 stdscr.refresh()
268 c = 0
269 while not rospy.is_shutdown() and c == 0:
270 c = stdscr.getch()

Related snippets