I'm trying to create a C# console application to take a snapshot with a laptop webcam.
The snapshot itself was no problem, (I'm using AForge for this) but now I want to turn on the flash / torch of the webcam. But I can not find any information how to do this.
Found many discussions for phones / iOs, for C++ and many people wanted to deactivate the "indicator light".
Thought about doing it in C++, because I found informations about that with directshow, but also the information that this is not possible with all webcams.
So I wanted to ask you, if you have any informations if this is not possible with my cam (see name below), or do you have any idea what I can try with C# (maybe AForge)?
AVStream Camera 2500
Windows 10
Thank you in advance,
HerrBrati
Related
I am looking for a solution for capturing webcam and network cameras.
I've done some research on the internet but so far I haven't been able to find a solution that was viable for my problem. I need my application to list all available cameras and give me the option to select one to display. I also need an option that allows me to take a print of the camera and save it in a folder.
My research took me to some proprietary solutions and to some tutorials that didn't solve my problem, like these.
Wpf-MediaKit: https://github.com/Sascha-L/WPF-MediaKit
Media Capture: https://learn.microsoft.com/pt-br/windows/uwp/audio-video-camera/basic-photo-video-and-audio-capture-with-mediacapture
LeadTools: https://www.leadtools.com/sdk/multimedia/capture?
Does anyone know any OpenSource library that solves my problem?
To detect camera devices on your system, use ManagementObjectSearcher and figure out the string query to use for the camera(s) you want to find. Google "ManagementObjectSearcher camera devices" on how to do it, I don't have a direct solution.
To read the camera stream in C# (so that you can capture a frame), look into OpenCVSharp and the online samples it provides in github.
Good luck!
I'm currently developing a windows phone 8.1 Silverlight in C#. I managed to get the stream of the camera and output it on the screen of the phone (using PhotoCamera). This app is about OCR so I need to get an image very frequently to perform operations on it (the goal is to detect a specific object but through the camera and not a picture). Does anyone have an idea about how to achieve that (-> a function from the API that sends you an image every so often)? There is a lot of Microsoft tutorial, but I can't find one about that particular usage.
Well this seems to be the tutorial I was looking for. Hopefully this will help other people with the same problem : https://msdn.microsoft.com/fr-fr/library/windows/apps/hh202982(v=vs.105).aspx .
I am trying to develop a Windows Form Application (not WPF) where I would require to preview numbers of cameras available on a tablet or PC, take pictures and then save the pictures in the device.
I am very new to this kind of application development and recently came accross Media Capture but I can not find a good lead to start with.
Can anyone let me know how to approach or how can I build the application with the aforementioned features or provide a good lead??
P.S. Found a good example on https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622/ but it uses XML not the Win Form Application type.....
What kind of cameras do you have? If the cameras support onvif, then there is a good onvif camera software you could try. You can handle many cameras with it, you can take snapshots so I guess it could work for you.
I need to be able to record video from an external camera in a C# application.
Unfortunately a webcam is pretty much out of the question as the application will record outside and during the evening/night. That is why I was thinking of a camcorder since it also has manual control over exposure and focus, lower noise and better sensor.
So far I would use the AV/S-Video output from the camcorder and send the signal to a USB capture card (the computer is a laptop so no PCI-E cards).
How would I be able to access the video stream from the C# application, now that it comes from the capture card ?
Does my proposed system seem feasible (achievable, good video quality, good fps)? Does anybody have another working solution?
Thanks
This Code Project Article could be of a good starting point.
The Author mentions :
The main goal of the application was to make it flexible and
extensible. The application itself can communicate with any video
source – it may be an IP video camera or a server, it may be a local
camera attached to USB, it may be an MMS stream from a remote server,
or it may be any other video source. And more of it, the application
can work with all these video sources simultaneously, displaying them
all on a single screen.
The solution I used in the end was Microsoft Expression Encoder.
I need to rapidly develop some software that uses a camera as an AV input.
Assuming the drivers are installed for whatever the device that is giving the input I need to be able to capture images and to stream the camera in the winforms window.
I couldn't find a component that I can use, maybe because I don't know the right name for it.
Touchless is under a licence I can't use. If anyone knows of a good compoment/code I can use even if it's for a fee I will appreciate this.
DirectShow.NET library suits the bill here. You can use it to access the webcam directly using the underlaying DirectShow object as in here: http://www.codeproject.com/KB/audio-video/WebcamUsingDirectShowNET.aspx
Also if you consider learning WPF, there is a very neat webcam component here: http://wpfcap.codeplex.com/
It is just like dropping a image control on the worm, but this time in WPF:
Edit: There are also two Winform webcam components as I see now: http://easywebcam.codeplex.com/ and http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx
This article explains how to access the webcam using Windows Image Aquisition services.