Click here to Skip to main content
15,902,189 members
Everything / Webcam

Webcam

webcam

Great Reads

by Alessandro Del Sole
This article explains how to acquire images from scanners and Webcams and how to store them to a LightSwitch application's database
by Meshack Musundi
A WPF control for displaying and recording video from a webcam
by Sergio Andrés Gutiérrez Rojas
Face detection and recognition with support of multiples faces in the same scene and other interesting features using C# and EmguCV
by Alexander Iacobciuc
In this article you will find yet another implementation of a web camera control.

Latest Articles

by Sergio Andrés Gutiérrez Rojas
Face detection and recognition with support of multiples faces in the same scene and other interesting features using C# and EmguCV
by Alexander Iacobciuc
In this article you will find yet another implementation of a web camera control.
by Meshack Musundi
A WPF control for displaying and recording video from a webcam
by Alessandro Del Sole
This article explains how to acquire images from scanners and Webcams and how to store them to a LightSwitch application's database

All Articles

Sort by Updated

Webcam 

21 Apr 2022 by Kaushik Vezzu
As a part of my project involving conversion of sign language to english , I developed .tflite model and did predictions successfully using opencv. Now i want to implement web application for this . On the web page , there will be live streaming...
19 Mar 2022 by BAHA 2022
HELLO How can I select the object with the mouse using the in visual studio webcam and have the program follow the selected object? I was only able to operate the camera please help What I have tried: I was only able to operate the camera
5 Jan 2022 by Sergio Andrés Gutiérrez Rojas
Face detection and recognition with support of multiples faces in the same scene and other interesting features using C# and EmguCV
31 Aug 2021 by Maciej Los
Please, read my comment to the question first. If you would like to exchange data between form "on the fly", i'd suggest to read OriginalGriff's excellent articles/tips: Transferring information between two forms, Part 1: Parent to Child[^]...
31 Aug 2021 by Member 15329159
I used AForge to detect the webcam and obtained the real-time captured video but i want to use that real-time video in another form such that I can use the webcam i detected in the form1 in form2. I found a lot of pictureBox data transfer...
16 Aug 2021 by Luc Pattyn
Images need to be disposed of when no longer in use, so try replacing pictureBox1.Image = video; by Image prevImage=pictureBox1.Image; pictureBox1.Image = video; if (prevImage!=null) prevImage.Dispose(); :)
12 Aug 2021 by Dhiren M
I am creating a C# form app to view webcam using AForge. The preview of webcam is taken to pciturebox. I have taken picturebox so that I can resize the preview window and image is stretched. Problem is that the preview is freezed after few...
8 Apr 2021 by Varun Sareen
Dear Friends, As the Adobe Flash player has ended its support, I am out of options to convert my existing code (which is dependent on flash player to capture image) to something which doesn't require flash player to capture the image. Please...
8 Apr 2021 by Richard Deeming
You obviously didn't search for the right terms: Media Capture and Streams API (Media Stream) - Web APIs | MDN[^] MediaDevices.getUserMedia() - Web APIs | MDN[^] Taking still photos with WebRTC - Web APIs | MDN[^]
11 Mar 2021 by Member 15092484
I am writing a simple WebCam monitor in VisualBasic. The complete program is below. The Form contains a Panel called VideoPanel and a ComboBox. The compiler also contains references to DirectX.Capture.dll (V 1.0.1313.24984) and DshowNET.dll (V...
19 Jan 2021 by Agarwal1984
Hello,I want to develop application for qrcode crate and qr code scanner using webcam.I am using this code for create QRCode:-protected void BtnQRCodeCreate_Click(object sender, EventArgs e) { QRCodeEncoder encoder = new QRCodeEncoder(); Bitmap img =...
6 Sep 2020 by Member 14760154
I have a problem with my project , I think it's about web camera/ camera problem , I have developed my application ,and i have test on my pc , it was successfully when i am using my camera, then i try to use webcam it was not move to...
21 Jul 2020 by Member 14025982
it's very interesting
25 Feb 2020 by Kris Lantz
I spent some time in my previous job installing and playing with professional HikVision systems, so here are some thoughts. -Do you need night vision? If so, what kind of range? -Is each camera location shielded from weather? -What are power...
25 Feb 2020 by Dave Kreskowiak
The major cost isn't going to be the webcams. It's going to be the infrastructure to connect them all and manage/store all the video for as long as Security wants it. As for which one is going to be the best for you, you're going to have to buy...
25 Feb 2020 by C-P-User-3
((((Preface, I don't know where this question belongs; moderator(s) please direct me)))) Anyway... Maintenance, Security, and Admin would love to have our entire place covered with video. "Professional Surveillance" vendors would love to...
8 Feb 2019 by Member 14144411
I want to use barcode dll reader from Berend Engelbrecht in Autoit. i need to capture image from webcam than i need to read all barcode inside and make operation. In autoit is not a problem to capture an image from webcam but i need some help to use dll What I have tried: nothing. i need to...
8 Feb 2019 by MadMyche
Are you referring to this article? Reading Barcodes from an Image - III[^] Then the best thing to do would be to use the forum at the bottom to leave a message
23 Nov 2017 by Member 9927463
Greetings,I am currently working on a project in which we need to stream live video off of a USB device and I was wondering, how I could go about doing it. I was able to accomplish the task using dynamic web twain(Trial Version) but I was wondering if there's another way that would be less...
5 Nov 2017 by Alexander Iacobciuc
In this article you will find yet another implementation of a web camera control.
19 Oct 2017 by EasyHero
Hi, i am capturing image with Webcam. based on the device(laptop) used, the image capture either freezes at some point or not. What i want to achieve is to ensure that the capture does not freeze. Here is the function that captures the image. it uses Direct Show Library private void...
19 Oct 2017 by Bernhard Hiller
Learn the basics of MVVM. Bind properties of some controls (View) to properties of a ViewModel. The Binding engine takes care of the correct thread. In your model, run your thread for capturing the image, raise an event to the ViewModel for every new image.
25 Sep 2017 by Meshack Musundi
A WPF control for displaying and recording video from a webcam
24 Sep 2016 by dyooshi
Im doing an application for my school project which is when user plugged in usb drive, login for will come out asking user to login first but if user failed login for three times, webcam will automatically capture. The problem here, how can I make the webcam to automatically capture after failed...
10 Sep 2016 by Richard MacCutchan
See VideoFileReader Class[^] for instructions on installation and usage.
10 Sep 2016 by ghasem110deh
hi guy'si use Aforge lib in my project for capture image and record live video from webCam ...but when use ffmpeg.dll to save AVI file from webCam send this Error :private VideoFileWriter FileWriter = new VideoFileWriter(); FileWriter.Open("test.avi", 460, 500, 25,...
18 Aug 2016 by Member 11125335
Hi, I need to integrate three USB cameras in asp.net. Each camera should be shown in separate widget. how to integrate it and also how to identify the cameras. please give some guidelines..What I have tried:This is laptop webcam code,
18 Aug 2016 by Vincent Maverick Durano
Quote:I need to integrate three USB cameras in asp.netASP.NET can't do that. Your USB drive is on the client's PC and ASP.NET web app runs on the browser - there's a disconnected space between them.Perhaps using ActiveX/Java Applets might be possible but I can't guarantee it.
24 Jul 2016 by tomo5996
Hello.I try to get picture from on-board webcam on a windows8 tablet with C#(Visual Studio 2010).I've tried some libraries (DirectShowNet, OpenCvSharp, Versatile WebCam C# library)and I can get 640x320 pictures from on-board webcam.But when I try to get another resolution(800x600,...
7 May 2016 by chris47368
Hi I have been looking everywhere for some simple code that does not show any webcam picture on the program's GUI but just takes the picture and saves discreetly in the background. You may ask why I need to do this? Well it's for use in my encryption programs for random key generation as my plan...
7 May 2016 by Sergey Alexandrovich Kryukov
Here is my bottom line:The question about using images from a Web camera was asked and answered so many times that it would be really bad to answer it again and again. A good source for the solutions (many) is CodeProject search: Search — CodeProject[^].I know your idea can work, but I...
14 Apr 2016 by fig000
Sergey, Thanks for responding. I will say that your response was a bit confusing. Firstly, cameras are not totally unrelated to barcodes except in the abstract. If you'll look at some of the list of posts you asked me to look at you'll see at least two sdks that do what I asked about:...
13 Apr 2016 by fig000
Hi, I've been looking for a way to use a web cam (logitech ar orbit:v-uu22a) to read a barcode (of various kinds) from inside vb.net code. I have found two products (katahashi and bcweb) that will work with a web came but they run from their own guis. Is there some software that will read...
13 Apr 2016 by Sergey Alexandrovich Kryukov
Web camera is one thing, barcode recognition is another one. Honestly, it would be bad to answer again and again two questions answered so many times. See, for example:Webcam,Barcode.And this is on CodeProject along…Can you use it? First of all, it depends on the barcode...
24 Mar 2016 by morteza17
I could record video from webcam (for video processing in matlab 2013 and before) by using following code.But, since in matlab 2015 some functions have changed and there is no backward compatibility, I can't do that again! For example, avifile() function has been replaced by...
21 Mar 2016 by Member 11693314
I am already detect the iris (eye) of humans using JavaScript but i want to find out the how to set the jewelleries on human body parts. So i just want to know that how to detect whole body parts using webcam. Give me just idea to detect all parts so i can put object on it. This is the following...
6 Sep 2015 by Wendelius
Haven't used AForge.Net so unable to say anything about it but you should be able to capture the data from the web camera using DirectSHow[^]There are quite a lot of examples how to use DirectShow. Most of them have a preview window because that's a typical requirement, but it's up to you...
5 Sep 2015 by Richard MacCutchan
You already posted this in the articles section and the C# forum; please do not repost.
18 Jul 2015 by Frankie-C
A bitmap file have one header more respect the memory bitmap: The BITMAPFILEHEADER[^].Take a look to docs, and add it at very beginning of the file ;).For more info just googling you can find many examples on the net.
17 Jul 2015 by MarioAda
I've been working on a Webcam video recorder and I got interested in trying everything when it comes to this topic but there's this problem that I can't solve.Everything that you might wonder about can be found here...
6 May 2015 by Sergey Alexandrovich Kryukov
First part of my answer may come at surprise, because it's not even discussed in the Open CV documentation: strict background subtraction, even based on referenced background image (called background model), is theoretically impossible. This is because even two images provides incomplete...
6 May 2015 by Member 11670301
I am building an interactive installation using live video footage. English isn't my native language, sorry for possible mistakes.I want to use live webcam footage. The program should have a reference image of the background and should subtract that from the moving foreground. Every few...
15 Apr 2015 by gribson
This source code can be used to send the image of your webcam to remote locations. I can help if you look for a solution like this: the server will be the PC that the webcam is connected to, and the remote computers will be the clients. namespace Onvif_IP_Camera_Server_04{ public...
25 Mar 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question. Please do the search, for example, http://www.codeproject.com/search.aspx?q=Webcam+video+capture+%28%22.NET%22+OR+%22C%23%22%29&doctypeid=1.—SA
25 Mar 2015 by mechatronic11
Hiİ want to send webcam video from server to client in c# windons application .In server , ı take video from webcam and then i send to client. so i can watch server's webcam . How can do that ? Please help me.
23 Mar 2015 by ProcopioPi
am also trying to run two lifecam nx-6000 with directshow and the other wrapper dshow but both and other intents are not working. Everyone points to FAQ or some other documentation but there is no actual sample of how to do it.Thaks
26 Feb 2015 by A.Castillo
Thanks for the answers, in the meantime I could figure it out myself. I made a mistak in the code.connector.Connect(_microphone,_mpeg4Recorder.AudioRecorder);This is the right one, first i tried to connect the camera to the _mpeg4Recorder.AudioRecorder instead of the microphone. My bad,...
25 Feb 2015 by Sergey Alexandrovich Kryukov
AForge.NET, will strongly recommend it. Step-by-step tutorials? They can be helpful, but how badly do you need them? If you really cannot leave without them, you probably should not go in for such a difficult topic as computer vision. I consider this factor negligible. More important some...
25 Feb 2015 by alwilgus
I really like the articles on vision processing using a web camera. But most of them are old. (I'm still using VS2012). But what should I take the time to learn? AForge.Net looks good, but I don't see any 'Step by Step' tutorials or 'How to ...' books out there for specific code. What do...
20 Feb 2015 by manak chand
Try below mentioned links.. these might be helpfull...CodeProject - Sending and playing microphone audio over network[^]CodeMiles - Sending and playing microphone audio over network[^]
20 Feb 2015 by A.Castillo
Hi all,I have a Microsoft USB webcam and I want to record the video/audio stream. I found a very useful C# web camera software but I don’t get any audio from the camera’s microphone. Here is the code I am trying to employ:connector.Connect(_camera, _mpeg4Recorder.AudioRecorder); //This...
9 Feb 2015 by Yesii
how to get webcam working on html5:http://blog.teamtreehouse.com/accessing-the-device-camera-with-getusermediaAnd this:http://www.comm100.com/blog/contributors/webcam-csharp-library-api-aspx.html[^]
9 Feb 2015 by A.Castillo
You can try this, too: check the homepage of Ozeki Camera SDK . Here you can find solution to record the video of your camera. And after you made it you can upload to the server, it support ASP.NET.
7 Feb 2015 by Zoltán Zörgő
This is the way: http://www.html5rocks.com/en/tutorials/getusermedia/intro/[^]. But as not all have HTML5 browser, you still need some fallback, so check this too: https://github.com/jhuckaby/webcamjs[^]
7 Feb 2015 by Mr_cool
Please let me know if somebody knows a way out to record a video from the webcam and then upload it to the server. This needs to be done for web application using asp.netAny help will be appreciated.
30 Dec 2014 by Member 11344004
I'm trying to code with simplecv on a virtual machine using virtual box but i cant access the camera. In the virtual box options i clicked on the isight camera, and on the debian machine i opened up cheese web booth. The green light next to the camera is glowing but the cheese photo booth is...
25 Dec 2014 by Syed Rizwan Haider
Im using a webcam to show live stream, capture images, record video etc using AForge library.Each time I get a new frame, I assign it to a pictureBox to show the live stream and i have added a toolstrip for recording video when it is checked. so i did it in the same following...
19 Dec 2014 by Kunjammu
Hi, In my wpf application i want t use my webcamera for taking photos. i used webcamcontrol and expression encoder for this. its perfectly working in my system, its windows7 32 biti want to work this in othertab IBALL 32 bit os. if i run the same application in this tab, then "Exception...
8 Dec 2014 by _Maxxx_
Are you saying that you would have an object which you decide to describe as being one unit, then use it to calibrate each camera?If so, easy! Measure the shape in pixels - and for that camera, that number of pixels = 1 unit.From then on, you know that on webcam a, X pixels = 1 unit, and on...
8 Dec 2014 by Member 10450635
I need to calculate distance between two points using a webcam. Now the catch is I don't need it to be any way related to actual measurements in cm or whatever. What I want is to use different webcams of different resolutions and they should all give the same measurement. I'll...
26 Nov 2014 by Rachel Jia
For face capture, you can use a DirectShow webcam SDK for image capture and then you can do the detection/recognition part.Try this online demo (using a 3rd party SDK - ImageCapture Suite) and see how image capture in ASP.NET works.
20 Nov 2014 by Member 10371642
I want to use webcam in my application offline . but in jquery there is every where use getusermedia() i want to use webcam without it.if it is possible please give jquery code thanks for advance.
11 Nov 2014 by PatientCarePro
If this issue is still relevant, I can recommend you to study this video guide: C# camera tutorial #6 - Recording video[^]After watching the video you will see that first you need to create connection between your camera and the application. After this you need to implement the recording...
27 Sep 2014 by LLLLGGGG
https://www.google.it/search?q...
27 Sep 2014 by Member 11112880
Hi! I am new in c# and i have an project which is recording a video via my webcam and save it. But i don't know how to do this in c# programming language. By the way thanks for help.
10 Sep 2014 by George Jonsson
This is sometimes caused by using the wrong calling convention in the pinvoke declaration.You don't show the declarations of your pinvoke methods, so this is a guess.As I am not very good at VB I am not sure how this is declared in this language.In c# you write like...
10 Sep 2014 by JoshuaDsouza19
I am getting an error from yesterday. The error is (PInvokeStackImbalance was detectedMessage: A call to PInvoke function 'WebCam ScreenShot!WebCam_ScreenShot.Form1::SendMessage' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target...
10 Sep 2014 by Bernhard Hiller
Quote:... likely because the managed PInvoke signature does not match the unmanaged target signature ...Check that the datatype of hHwnd is correct - it must be an IntPtr. Also iDevice mut be an IntPtr.And did you define WM_CAP_DRIVER_CONNECT as UInteger?
3 Sep 2014 by Xiao Ling
To develop the Webcam+QRCode application, you can use Dynamic .NET TWAIN[^], which supports Webcam and barcode development in VB.NET.You can read following articles:1. How to Implement a Webcam Application in VB.NET[^]2. How to Read Barcode in WPF with VB.NET[^]
2 Sep 2014 by Sergey Alexandrovich Kryukov
Forthis wrote:Its a choice to learn and I choose to learn more because i don't like people looking down on me to prove myself and to them i could do better. But anyway Sir thank you for your time dropping by though i still don't want to give up the idea of vb6, I will study vb.net for the mean...
2 Sep 2014 by CPallini
I suppose your best bet is VB.NET powered by Google[^].
2 Sep 2014 by Forthis
Good Day Sir/MamBefore i start yes I'm using a very old programming language and i lack knowledge in many fields in programming that's why I'm here to start learning and start asking before i choose a path to take.Now with the question is it possible to make QR Login via webcam using...
20 Aug 2014 by magic.on
Hello, I've successfully streamed my webcam to my android phone using libraries in nVLC on this site.Problem is that i could only have stream it inside my own network (under wifi).Best regards,Gabriel
13 Jun 2014 by Sergey Alexandrovich Kryukov
You are not getting it. "Color specification" it totally irrelevant to it. You images are really different: motion, lighting, noise, and so on. One second is huge time to make images very difficult on a pixel level. Even nearest frames (no matter what your frame rate is) will be very different...
13 Jun 2014 by Member 10860939
hi everyone,I want code a C#.net project that it will take a screenshot from webcam and compare screenshots who taken from the same webcam. I tried to compare images by pixel but the RGB values of 2 pictures is very different. However they are taken from same camera in 1 sec. That's why...
23 May 2014 by seliya hilal
public static System.Drawing.Image Resize(System.Drawing.Image image, int width, int height, RotateFlipType rotateFlipType) { // clone the Image instance, since we don't want to resize the original Image instance //var rotatedImage = image.Clone() as...
18 May 2014 by Manikandan10
This page describes how to create a webcam using C++ and MFC but you have mentioned you have to avoid C++. Are there any reasons why you have to program in C but not C++?
14 May 2014 by lolaparra80
That is extrange. I have tried to program into the same winform, only with a one form, and actually is working, but when I try to join with my actual project, where I use Usercontrols, don't work.Maybe there is something that I can't see, I don't know exactly where is my problem.I will...
7 May 2014 by Member 10453455
I learning to development a webcam application using C instead of C++. I know there are example of DirectShow and MediaFoundation around but it works in only C++.I also tried using VFW but I can only get it to work properly in window xp. When I try running it on windows 7, it seems to be...
6 May 2014 by CPallini
See, for instance, this Code Project article: "Dynamically Write Text On An Image"[^].
6 May 2014 by Saim Ullah
hi,i have searched alot but unable to find that how to put timestamp on picutrebox....i hv a program in in which a picturebox is streaming from webcam... when i captured a photo it saves in bin folder with the name of current date and time....but i want a time stamp on the image thus...
5 May 2014 by Dave Kreskowiak
On top of OriginalGriff's response, which is dead on accurate, I don't think you're going to get away with using a couple of USB webcams to do this. Since you can't get data simultaneously from two devices on the same USB controller at the exact same time (refer to what USB stands for:...
5 May 2014 by OriginalGriff
10 milliseconds is pretty good, in Windows terms - it isn't a real-time operating system, and there is no guarantee that even on the same thread one instruction will be executed immediately before the next: it depends on the system load and can be any time interval at all. Windows is a...
5 May 2014 by lolaparra80
Hello:I have the next problem. I have 2 winform, the first winform control a motor with a camera where both are syncronized to take several images with a concrete number of frames per seconds. This project is very special and delicate because I need a sequence of images with the same time...
21 Apr 2014 by 123456789igor
So, i try to save image on disk from web camera using AForge. But the image takes a lot of size on disk and amount of images is high. I want to descrease the size of images and descrease the amount of images per second(minute). But i don't know how to do thisMain code:public void...
24 Mar 2014 by Saahyl
package us.sosia.video.stream.agent;import java.awt.Dimension;import java.net.InetSocketAddress;import com.github.sarxos.webcam.Webcam;public class StreamServer { /** * @author kerr */ public static void main(String[] args) { Webcam.setAutoOpenMode(true); Webcam...
23 Mar 2014 by Xiao Ling
You can use JSON to save all settings. Here is the JSON.net[^]
19 Feb 2014 by Khageswar Rao
When i insert image into sqldatabase using store procedure it gives an error at "PictureBox1.BackgroundImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)" error is >Object reference not set to an instance of an object.
8 Feb 2014 by SOHAM_GANDHI
i'l suggest to use EmguCV........Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
i'l suggest to use EmguCV........Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
i'l suggest to use emgucv.......Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
i'l suggest to use EmguCV..Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
i'l suggest to use EmguCV..Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
i'll suggest too use emgucv..Quote:[^] [^] [^] refer these articles
8 Feb 2014 by SOHAM_GANDHI
i'l suggest to use EmgucvQuote:[^] [^] [^] refer these articles
29 Jan 2014 by micmdk
I have a normal webcam with a very strange problemall webcam settings loss after I restart my computerI try to find solution by changing camera driver with no success...ask camera support team and no solution also (this problem happened with all customer)Question is:Can I save all...
11 Dec 2013 by TrushnaK
Refer Below Links you get what you want exactly:-http://www.planet-source-code.com/vb/scripts/showcode.asp?lngWId=10&txtCodeId=1339[^]WPF: Webcam Control[^]http://easywebcam.codeplex.com/SourceControl/latest#EasyWebCam/WinFormCharpWebCam/Form1.cs[^]for downloading...
11 Dec 2013 by Snehasish_Nandy
looking-for-code-to-capture-image-in-C-Sharp-save-by-webcam.aspx[^]