简体   繁体   English

Python 3网络摄像头

[英]Python 3 Webcam

im trying to make a face detection program and I need to access my webcam. 我正在尝试制作人脸检测程序,我需要访问我的网络摄像头。 Im strictly using python 3 for this project. 我在这个项目中严格使用python 3。 I have tried OpenCv and video capture, but those only work for python 2.7. 我已经尝试过OpenCv和视频捕获,但是它们仅适用于python 2.7。 Is there any way that I can code this manually in python to, 有什么办法可以在python中手动编写代码,

  1. A.use command line to do this, A.使用命令行执行此操作,
  2. Manually code this in python somehow, or 以某种方式在python中手动编码,或者
  3. Any other modules(that work with 3). 任何其他模块(可与3一起使用)。

Any help would be appreciated! 任何帮助,将不胜感激!

VideoCapture has worked really well for me in the past. 过去, VideoCapture对我来说运作得非常好。 The sourceforge page only shows support through python 2.7, but this page has pre-built installers through python 3.4. sourceforge页面仅显示通过python 2.7的支持,但是此页面具有通过python 3.4的预构建安装程序。 Simple, lightweight, and works. 简单,轻巧且有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM