简体   繁体   English

使用Python访问互联网上的网络摄像头

[英]Access webcam over internet using Python

I have written a program using Python and OpenCV where I perform operations on a video stream in run time. 我使用Python和OpenCV编写了一个程序,我在运行时对视频流执行操作。 It works fine. 它工作正常。 Now if I want to publish it on a website where someone can see this using their browser and webcam, how do I proceed? 现在,如果我想在有人可以使用他们的浏览器和网络摄像头看到这个的网站上发布它,我该如何处理?

not really sure what you want to happen but if your going to implement this kind of feature in a website I think you should use a flash application instead of python (or if possible html 5). 不确定你想要发生什么,但如果你要在网站上实现这种功能,我认为你应该使用flash应用程序而不是python(或者如果可能的话,html 5)。 though your using python on the development of you web app it would only run on the server side instead and the feature you want to use is on a client side so for me it's more feasible to use flash instead to capture the video then after capturing the video you upload it to your server then your python code will do the rest of the process on the server side. 虽然你在开发web应用程序时使用python它只会在服务器端运行,而你想要使用的功能是在客户端,所以对我来说,使用flash代替捕获视频然后捕获之后更可行您将视频上传到服务器,然后您的python代码将在服务器端完成剩余的过程。

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

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