Click here to Skip to main content
15,924,196 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am creating an windows project and I want capture an image from web camera. How I can code for this functionality.

Please give proper solution.

thanks
Posted
Comments
vlad781 11-Jun-12 13:06pm    
I hope you weren't hoping for people to just give you the code. I mean, really. How are you going to learn off that?

This depends on the camera driver. If it's a standard Windows imaging device (WIA), you can use the WIA approach.
If the camera has a standard DirectShow capture driver, you can use DirectX Media SDK from Microsoft to capture from it, but unless you're very good with C++, you might want to use a library built on top of DirectShow to make life easier.
We are using a third-party multimedia toolkit named leadtools to capture images from our web cameras. For more information, please see the below link:
http://support.leadtools.com/CS/forums/10345/ShowPost.aspx
 
Share this answer
 
v2
 
Share this answer
 
Comments
Member 8821727_GhostAnswer 16-May-12 3:53am    
thanks for reply. I will check this
 
Share this answer
 
Comments
Member 8821727_GhostAnswer 16-May-12 3:53am    
thanks for reply. I will check this
I think our CP has its own solution,

Versatile WebCam C# library[^]
 
Share this answer
 
Comments
Member 8821727_GhostAnswer 17-Oct-12 8:27am    
thanks for reply

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