通过Python获取摄像头数据

作者: 科斯莫耗子 | 来源:发表于2016-07-21 20:23 被阅读1518次

环境配置

程序实现

#! /etc/bin/env python
# -*- coding:utf-8 -*-

'Capture'

__author__ = 'Gao Yuhao'

from VideoCapture import Device
import time
camera = Device(devnum = 1, showVideoWindow = 0)
i = 0
while 1:
    camera.saveSnapshot('snapshot.jpg',timestamp = 3, boldfont = 1)
    i += 1
    print i
    time.sleep(3)

TODO

  • 考虑通过某种形式实现远程监控
  • 增加更多功能,如保存多张图片

相关文章

网友评论

    本文标题:通过Python获取摄像头数据

    本文链接:https://www.haomeiwen.com/subject/jqnbjttx.html