TechStark / opencv-js

OpenCV JavaScript version for node.js or browser

Home Page:https://npmjs.com/@techstark/opencv-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cv.waitKey() is missing

DOEHOONLEE opened this issue · comments

cv.waitKey() is missing is missing.

Is there some other way to achieve the same behavior? or is this going to be added in the future?

Thanks!

@DOEHOONLEE I don't think it will be added in the future. Because JavaScript is single-threaded, but cv.waitKey() blocks the current thread.
If you want to monitor keyboard events, you can use library like https://github.com/ccampbell/mousetrap or https://github.com/jaywcjlove/hotkeys.