I want to take a photo using a webcam from my application. How do I accomplish that? My application is developed in C# and to make a visitor's pass, I want to take a photo of the particular visitor when he enters the company building.
Try out jQuery Webcam
I am struggling to get the save function to work, but its a start.
Webcams all use a different API. Find the API that your webcam supports...let me know, and I will happily talk you through how to do it.
I assume that you are talking WinForms?
You are going to need some kind of trusted client side code, if you want to do this. Java, Flash, SilverLight are all possibilities. But they may create a dependency on a particular WebCam/Software/API.
You'd be much better off configuring your web cam to put its photos in a single place and have a web form that accepts a file upload.
This way when your web cam breaks and you can't get the exact same device you don't have to recode.
Related
I am trying to figure out how to use WIA on a ASP.NET/C# web page to capture an image from a camera that is on the client computer. The user will be using a Microsoft LifeCam camera and from my webpage I want them to be able to take the picture and store it in a database. I imagine I will need to use DirectX for this and that is an acceptable solution but any solution would be great.
My big problem is I cannot seem to find any samples/documentation on how to do this on a webpage. All I am finding is stuff that says it can be done but no explanation on how. Any help anyone could provide would be greatly appreciated. Thanks.
It seems you have to generate a dll for the interface with tlibimp (from wiascr.tlb) which you can add as a reference in c#, then you can follow the tutorial (http://msdn.microsoft.com/en-us/library/ms629859(v=vs.85).aspx).
I'm curious, how do you integrate a webcam with an ASP.NET C# application in a 'live broadcast' type scenario? I have no idea where to start with this but really interested to learn how it works in terms of detection and live streaming. A point in the right direction would be great, thanks.
Nothing to do with ASP.NET MVC really. The camera's on the client, so you need to use client scripting such as Flash or Silverlight to access it. Here's for example a jquery plugin (based on Flash) which allows you to control the camera (once the client authorizes the site to do so).
HTML5 might also be an option one day.
Is there a way to access the Share Picker in my application? I have read about making my own Share Picker Extension, but that isn't really what I am looking for. I want the user to be able to share a generated image from my app.
Thank you,
Doc Haven
No. The SharePicker allows you to add functionality from your application to the Pictures Hub.
There is no way to add that functionality, from the hub, back into your app.
If you want to be able to "share" something with the web (e.g. sent do Facebook/Twitter) then you must implement this yourself.
There is no way to link between your application and another on the device.
I want build an application on web which records the audio sound through Mic.
If any one can provide some appropriate approach or some links would be helpful.
also if you can suggest some third party control which is free.
The technology for Implementation - ASP.NET , C#
Since you are looking to use C#, check out Silverlight 4 which added microphone support to Silverlight. Here is a tutorial on accessing the microphone in Silverlight 4. Scratch Audio is a great example of a Silverlight support with microphone support.
javascript does not give mic support. You would have to include another technology to do this.
I know flash supports microsoft input. It might be the best place to start. I don't know if silverlight has these features.
The only other things i can think of would be an activeX control for IE, or a standalone application. Both of these look like much worse approaches
You can use flash to record from microphone and upload it to a server. For the server you can use Red5 which is great open source server.
Here are some examples:
http:// => fms.denniehoopingarner.com/
http:// => mariofalomir.com/blog/?p=101
(Sorry but i can only post 1 hyperlink)
You guys are probably aware of Microsoft Tags.
We have a barcode gun in our office and I would like to read these tags using C#.
Any idea how I can go about doing this?
Thanks
The Microsoft Tag initiative is based around image recognition, a barcode gun won't have any idea of what to do with a 'Tag', but you can use your phone camera. There's a sample app in the Apple App Store if you have an iPhone, not sure if they've written a version for Windows Mobile yet.
The principle is that you can resolve the tag to a short alpha-numeric code (think GUID but smaller) and then look that up using Microsoft's register of tags, using Web Services.
The question is why?
There have been companies spruiking this for years and it just doesn't make sense.
I'd rather have an application that read a URL from a photo, OCR'd it and then punched it into a browser for me. That way you get the ability to click and view, but you don't need a phone in your hand to write down the URL. They're all striving for a vendor lock in.
Call me a luddite or blind to the way of the future but I just don't see this as a "killer app".