Ask Your Question
2

Keyboard input detection

asked 2014-03-13 12:08:02 -0600

dondan1976 gravatar image

Hello there,

I am new to OpenCV and would like to know whether it can be used to detect keyboard inputs entered by the user.

I am planning to write a software that will be platform independent and this software should be able to get all User inputs on the hardware/software keyboard.

Is this possible using OpenCV?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-13 22:38:35 -0600

Well, you can take a look at cv::waitKey

It will wait for a key during a delay amount of time (that you pass as a parameter) and will return an int value representing the key that has been pressed or an error value if no key was pressed.

It is quite basic, but it fulfills its purpose. Depending on what your purpose is you might need something more advance other than what OpenCV provides on this subject.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-13 12:08:02 -0600

Seen: 18,296 times

Last updated: Mar 13 '14