Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does waitKey() work correctly in Linux?

strong text

Does waitKey() work correctly in Linux?

strong textPorting a OpenCV program from Windows to Linux and found that the value returned from waitKey() had to be "%256"'ed. Looked at the docs and OpenCV is of type integer: http://docs.opencv.org/modules/highgui/doc/user_interface.html?highlight=waitkey#int%20waitKey%28int%20delay%29 So, is the waitKey() method broken in Linux. Or is there a reasonable explanation as to how why this method works differently between Windows and Linux.

-thanks

Does waitKey() work correctly in Linux?

Porting a OpenCV program from Windows to Linux and found that the value returned from waitKey() had to be "%256"'ed. Looked at the docs and OpenCV is of type integer: http://docs.opencv.org/modules/highgui/doc/user_interface.html?highlight=waitkey#int%20waitKey%28int%20delay%29 So, is the waitKey() method broken in Linux. Or is there a reasonable explanation as to how why this method works differently between Windows and Linux.

-thanks