Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

alternate to opencv cv.waitkey in python or pygtk

I am writing a code which saves an image, when space bar is pressed. I used opencv's cv.waitkey() but this functions only if a GUI window is active. I donot want to depend on a GUI Window.

I tried using pygtk's key-press-event, but this doesnot wait for key press. It only does the specified function when a key is presses.

How do i wait for a particular key press in python or pygtk??

Any help is appreciated. Thanks

alternate to opencv cv.waitkey in python or pygtk

I am writing a code which saves an image, when space bar is pressed. I used opencv's cv.waitkey() but this functions only if a GUI window is active. I donot want to depend on a GUI Window.

I tried using pygtk's key-press-event, but this doesnot wait for key press. It only does the specified function when a key is presses.presses. I have a pygtk window open

How do i wait for a particular key press in python or pygtk??

Any help is appreciated. Thanks