How to programmatically capture a webcam photo

前端 未结 2 1506
-上瘾入骨i
-上瘾入骨i 2021-01-30 18:40

What\'s the simplest way in Ubuntu 11.10 to programmatically guide (either from Bash or Python) the user to capture a webcam photo of themselves?

I can launch a simple a

2条回答
  •  半阙折子戏
    2021-01-30 18:58

    If you want to do this via Python, it looks like you have a few options. The Pygame library has the ability to access cameras.

    If that's unsatisfactory, you can go much lower level and access the Video 4 Linux 2 API directly using ioctl calls using Python's fcntl library.

提交回复
热议问题