Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
I have been using AForge to start my Webcam in c#. But I couldn't capture an image. Could any reply how to capture and save image using Aforge in c#.
Thank you.
Posted

1 solution

Please watch this video: http://www.youtube.com/watch?v=j4tAbB258wc[^].

Basically, you need to use AForge.Video.DirectShow.VideoCaptureDevice, please see:
http://www.aforgenet.com/framework/docs/html/f4d3c2ba-605c-f066-f969-68260ce5e141.htm[^],
http://www.aforgenet.com/framework/docs/html/d07e8a0c-1820-0acd-5120-74a9afbe1417.htm[^],
http://aforge.googlecode.com/svn/trunk/Sources/Video.DirectShow/VideoCaptureDevice.cs[^].

Do you need to capture a single still image? Most cameras provide an option to capture it, but you should check it up, as explained in the comment to the source code referenced above. See also the explanation by the author of AForge.NET Andrew Kirillov in his CodeProject article: Camera Vision - video surveillance on C#[^].

—SA
 
Share this answer
 
Comments
Member 8659344 26-Feb-12 10:05am    
Thank you very much.
Sergey Alexandrovich Kryukov 26-Feb-12 12:35pm    
You are very welcome.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900