开发者

Linux script that captures mouse movement, and snaps a webcam shot: libraries?

I'd like to write a script that once run on Ubuntu, captures any mouse movement and immediately uses the installed webcam to save a sn开发者_开发知识库apshot to the desktop. I'd like to know which libraries are standard for this sort of programming.

Thanks!


Found the answer. opencv for python (highgui) takes care of the webcam, and Xlib takes care of the events.

Use python DBUS to send a Lock signal to a screensaver.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜