V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
eric_zyh
V2EX  ›  Python

python有什么操作摄像头的模块么?

  •  
  •   eric_zyh ·
    ericzyh · 2013-01-08 18:51:42 +08:00 · 8454 次点击
    这是一个创建于 4126 天前的主题,其中的信息可能已经有所发展或是发生改变。
    操作系统是mac os,想监控电脑摄像头拍摄的图像。

    网上看到的VideoCapture好像只支持windows,或者能用shell perl 等其他的方法实现么?
    9 条回复    1970-01-01 08:00:00 +08:00
    lyric
        1
    lyric  
       2013-01-08 18:55:06 +08:00
    ckighth
        2
    ckighth  
       2013-01-08 21:46:37 +08:00
    pygame 好像有。。。
    ruoran
        3
    ruoran  
       2013-01-09 01:38:12 +08:00   ❤️ 1
    才用pygame在pi上试了一下,还可以。
    OpenCV开有些劣质摄像头(比如说我的)的时候貌似有问题。
    还有SimpleCV,基于pygame和OpenCV。
    freefcw
        4
    freefcw  
       2013-01-09 15:41:21 +08:00
    说起来正好浏览到这个 http://code.google.com/p/pyipcam/

    楼主可以试试
    amxku
        5
    amxku  
       2013-01-10 22:31:21 +08:00
    xgdgsc
        6
    xgdgsc  
       2013-01-11 06:54:58 +08:00
    OpenCV
    eric_zyh
        7
    eric_zyh  
    OP
       2013-01-12 22:48:28 +08:00
    @ruoran 用simplecv (https://github.com/ingenuitas/SimpleCV) 实现了,代码还蛮简单的。

    @amxku 代码只能在window下使用
    @freefcw 你这个貌似是网络摄像头图片获取
    xavierskip
        8
    xavierskip  
       2013-01-12 23:10:47 +08:00
    pygame有吧。
    我自己还没试过。

    http://blog.csdn.net/dyx1024/article/details/7249811
    eric_zyh
        9
    eric_zyh  
    OP
       2013-01-13 02:32:55 +08:00
    @xavierskip 用到了pygame,不过获取摄像资源好像用的是opencv,具体实现的细节simplecv封装了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2896 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:25 · PVG 17:25 · LAX 02:25 · JFK 05:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.