如何從asp.net中的客戶端網絡攝像頭捕獲圖像

[英]How to capture image from client webcam in asp.net


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?

我正在開發ASP.Net應用程序,我希望用戶能夠使用本地網絡攝像頭拍照,然后將其上傳到服務器。當然,我可以依靠用戶通過本地安裝的軟件手動執行此操作,將圖像保存為文件並執行正常的文件上載。但是,我真正想要做的是將它全部合並到瀏覽器的UI中。我知道這意味着訪問本地資源所以我需要一個ActiveX控件或Silverlight,或者我可以在Javascript中做些什么?

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

這最初是用於Intranet應用程序,所以我可以控制客戶端的環境,包括規定瀏覽器等,這意味着我可以使用ActiveX控件,如果必須的話。但是,如果我能以通用的方式編寫它,那將是很好的,因此它可以在一般的互聯網應用程序中使用(很高興規定它只適用於Windows客戶端,但最好能讓它在FireFox中運行)。

Thanks.

5 个解决方案

#1


3  

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.

目前唯一可接受且通用的方法是Flash / Flex應用程序。 Flash播放器在世界上的每個瀏覽器中都是預設的,並且所有瀏覽器都具有這樣的功能。

#2


1  

VideoCap Pro is quite popular, and it offers an ActiveX version, have you checked it out?

VideoCap Pro非常受歡迎,它提供了ActiveX版本,你有沒有看過它?

#3


0  

This sounds very suspicious to me. You realize the nefarious applications this could be applied to, right? A web page that when a user browses to it, unknownst to them, their webcam snaps a pic of them. ... I don't like it.

這對我來說聽起來很可疑。你意識到可以應用的惡意應用程序,對吧?一個網頁,當用戶瀏覽它時,對他們來說最不熟悉,他們的網絡攝像頭會拍攝一張照片。 ......我不喜歡它。

#4


0  

You could use the Nimbb API to do the webcam video recording inside a browser.

您可以使用Nimbb API在瀏覽器中進行網絡攝像頭視頻錄制。

#5


0  

It is possible to get the image from client webcam in asp.net, you have to install the Silverlight 4 with Visual Studio 2010:

可以從asp.net中的客戶端網絡攝像頭獲取圖像,您必須使用Visual Studio 2010安裝Silverlight 4:

Go to following link:

轉到以下鏈接:

http://wildermuth.com/2009/11/23/Taking_a_WebCam_Photo_with_Silverlight


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2008/11/26/720ddd7663927a2fd3088fbb08750793.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com