如何在asp.net客户端的网络摄像头拍摄的图像 [英] How to capture image from client webcam in asp.net

查看:130
本文介绍了如何在asp.net客户端的网络摄像头拍摄的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作ASP.Net应用程序,我希望用户能够拍摄照片与当地的摄像头,然后将其上传到服务器。
我当然可以,依靠用户通过他们的本地安装的软件手动执行此操作,将图像保存为一个文件,做一个正常的文件上传。不过,我真正想要做的是整合这一切在浏览器的UI。
我知道这意味着访问本地资源,所以我需要一个ActiveX控件或Silverlight或者是有什么我可以在Javascript中这么做?

I am working on an ASP.Net application and I want users to be able to take a picture with their local webcam and then upload it to the server. I can, of course, rely on users doing this manually via their locally installed software, save the image as a file and do a normal file upload. However, what I really want to do is incorporate it all into a UI in the browser. I know this means accessing local resources so do I need an ActiveX control or Silverlight or is there something I could do in Javascript for example?

这是最初用于内部网应用程序,所以我可以有客户端的environemnt的控制,包括规定浏览器等,这意味着我的可以使用ActiveX控件,如果我不得不这样做。然而,这将是很好,如果我可以写这一个通用的方法,以便它可以在互联网的应用程序通常被用来(高兴的规定,只适用于Windows客户端,但将是很好的得到它的工作在Firefox)。

This is initially intended for an Intranet app so I can have control of the client's environemnt, including stipulating the browser etc, which means I can use an ActiveX control if I have to. However, it would be nice if I could write this in a generic way so it could be used in an internet app generally (happy to stipulate that it only works on Windows clients but would be good to get it to work in FireFox).

感谢。

推荐答案

解决这个问题的唯一可接受的和普遍的方式,现在是Flash / Flex应用程序。 Flash播放器$ P $的pset字面上在世界上每一个浏览器和所有的人都有这样的能力。

The only acceptable and universal way to this for now is Flash/Flex application. Flash player presets literally in every browser in the world and all of them has such capability.

这篇关于如何在asp.net客户端的网络摄像头拍摄的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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