使用 Python 通过互联网访问网络摄像头 [英] Access webcam over internet using Python

查看:52
本文介绍了使用 Python 通过互联网访问网络摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Python 和 OpenCV 编写了一个程序,我在运行时对视频流执行操作.它工作正常.现在,如果我想将它发布到一个网站上,让人们可以使用他们的浏览器和网络摄像头看到它,我该如何进行?

I have written a program using Python and OpenCV where I perform operations on a video stream in run time. 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?

推荐答案

不太确定您想要发生什么,但是如果您要在网站中实现这种功能,我认为您应该使用 Flash 应用程序而不是 python (或者如果可能的话 html 5).尽管您在开发 Web 应用程序时使用 python,但它只会在服务器端运行,而您要使用的功能在客户端,因此对我来说,使用 Flash 来捕获视频更可行,然后在捕获视频后您将视频上传到您的服务器,然后您的 Python 代码将在服务器端完成剩下的过程.

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). 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.

这篇关于使用 Python 通过互联网访问网络摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆