开发者

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

开发者 https://www.devze.com 2023-01-27 10:59 出处:网络
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 l

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

精彩评论

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