473,761 Members | 2,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webcam Capture

Hi!
Which is the best way to webcam video capture with C# 2.0 and vs 2005?
DirectX? VFW Windows Api ?

Thanks
Dec 21 '07 #1
9 16094
Hello Kevin,

See there http://www.codeproject.com/KB/dotnet...spx?target=WIA

and believe in google, it hepls in 90% :)

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
KHi!
KWhich is the best way to webcam video capture with C# 2.0 and vs
K2005?
KDirectX? VFW Windows Api ?
KThanks
K>
Dec 21 '07 #2
>and believe in google, it hepls in 90% :)

LOL


--
-----------------------
Beste Grusse / Best regards / Votre bien devoue
Kerem Gumrukcu
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Dec 21 '07 #3
Hi Michael, thanks for your reply.
My question was Wich is the best method, not how to do... ;)
"Michael Nemtsev [MVP]" wrote:
Hello Kevin,

See there http://www.codeproject.com/KB/dotnet...spx?target=WIA

and believe in google, it hepls in 90% :)

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
KHi!
KWhich is the best way to webcam video capture with C# 2.0 and vs
K2005?
KDirectX? VFW Windows Api ?
KThanks
K>
Dec 21 '07 #4
On Fri, 21 Dec 2007 04:47:01 -0800, Kevin
<Ke***@discussi ons.microsoft.c omwrote:
Hi Michael, thanks for your reply.
My question was Wich is the best method, not how to do... ;)
Your question was not at all that clear. Also, it's a little awkward to
ask what's the best way to do something in a certain technology (C# 2.0,
which is just the compiler but I assume you mean to imply .NET 2.0 also),
and then offer as the two options for "best" a couple of technologies that
have nothing to do with the certain technology.

All that said, I'm not aware of any built-in support in .NET for video
capture. The current Windows API is DirectShow which, oddly enough, is
not in DirectX anymore. It's in the Platform SDK and replaces
ActiveMovie/VFW.

Do a Google search for ".net directshow" and you'll come across an open
source project meant to make interop with DirectShow in a .NET program
much easier. I haven't used it myself, but it's been around few a few
years now and I'd guess it would help a lot.

Pete
Dec 21 '07 #5
//search
Windows Image Acquisition site:msdn2.micr osoft.com

"Kevin" <a@a.comwrote in message
news:OO******** ******@TK2MSFTN GP06.phx.gbl...
Hi!
Which is the best way to webcam video capture with C# 2.0 and vs 2005?
DirectX? VFW Windows Api ?

Thanks

Dec 22 '07 #6
"Kevin" <a@a.comwrote in message
news:OO******** ******@TK2MSFTN GP06.phx.gbl...
Hi!
Which is the best way to webcam video capture with C# 2.0 and vs 2005?
DirectX? VFW Windows Api ?
DirectX, specifically DirectShow, is the way to go. I'm not sure if there's
a managed interface available but you can get third party solutions or
sample on the internet. It's not that simple.

Alternatively VFW is a LOT simpler but doesn't have as much support or
functionality.
>
Thanks

Jan 6 '08 #7

"Michael C" <mi**@nospam.co mwrote in message
news:uY******** ******@TK2MSFTN GP02.phx.gbl...
"Kevin" <a@a.comwrote in message
news:OO******** ******@TK2MSFTN GP06.phx.gbl...
>Hi!
Which is the best way to webcam video capture with C# 2.0 and vs 2005?
DirectX? VFW Windows Api ?

DirectX, specifically DirectShow, is the way to go. I'm not sure if
there's a managed interface available but you can get third party
solutions or sample on the internet. It's not that simple.
Agreed. Look for DirectShowNet, on SourceForge.
Jan 7 '08 #8
a
Aug 19 '08 #9
hola
Aug 19 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
12008
by: Joakim Rylander | last post by:
Hi all, I need to create a public booth where people can look at themselves in a webcam and snap a picture which will be seen on a webpage. The backend is easy, it's the webcam part that I have problems with... Could you recommend the best way to capture a Webcam picture from .NET? Do I need device specific drivers or is there a standardized way to do it? Any recommended brand of Webcam?
4
15184
by: Mathieu Chavoutier | last post by:
Hi. Is it possible to do a program that show the "film" that is currently on our webcam ? I do not have a Webcam for the moment, so, if you have advices to chose a Webcam compliant (with what I want to do), I would be thanksfull.
3
4913
by: Christy | last post by:
Does anyone have any idea how i can begin to start programming an automatic image capture from a webcam by just using .NET? Thanks!
0
3212
by: CodeMayhem | last post by:
Hey fellow coders, I need help in integrating webcam capturing into a program written i C#. the camera will face the user and when he or she clicks th "capture" button, the camera should take the picture and display it o the program. before clicking the capture button, the user should b able to see the camera's view so that the user can adjust the positio of the camera in order to get a good picture. Hope someone can help me on this.
1
3585
by: Nikolay Petrov | last post by:
I need to capture frames from my webcam using a windows service. I've found some sample code on how to use thw VfW API, but I have two major problems: 1. The sample code uses picturebox to preview and grab images. I want to do it in formless windows service, so I need to capture frames without displaying anything. 2. All samples I've found are using Windows Clipboard. They call the API function which grabs as frame and put it in...
0
3424
by: indhu | last post by:
Hi all, am new to the VB forum. Anyway, i need a help from u all. i am developing project.where i am using some kind of webcam. capture image thru webcam by cliking capture button in the form. i ve to pick a color from the image using color picker tool. then this tool will drop the color in the next image (predefined image)other side of the form. then i will choose the lip area alone to change color using some predefined colors. any...
3
18297
by: rajibnsu | last post by:
While searching for capturing video with a webcam I god the following code.It gives two errors.Says:The type or namespace name 'WebcamEventArgs' does not exit in the namespace 'WebCam_Capture' (are you missing an assembly reference?) using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; using System.Runtime.InteropServices; namespace WebCam_Capture
2
31671
debasisdas
by: debasisdas | last post by:
This program checks if webcam is available, if available then capture video and displays in picture box. Add this code to the general module (.BAS file) ---------------------------------------------------------------------- Public Const ws_child As Long = &H40000000 Public Const ws_visible As Long = &H10000000 Global Const WM_USER = 1024 Global Const wm_cap_driver_connect = WM_USER + 10 Global Const wm_cap_set_preview = WM_USER + 50
2
2339
by: Craig | last post by:
We are trying to create an inhouse ID card system. What we would like to do is to have a webcam feed displayed in a webpage and for a user to be able to click a button to save the currently displayed feed as a jpg (on the local pc which will be uploaded to the server). Currently we are using the webcams own image capture software outside of our web app but this is not proving to be a very successful solution. Does anyone have any...
1
3135
by: Steve | last post by:
Hi All I have a VB.net 2005 windows forms application which uses webcam to take photos of staff members etc for use within the application All works fine if an external webcam is used The problem I have is when clients have a laptop with built in webcam The first time I connect to the capture drivers all works well. If I try to
0
9538
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9909
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8794
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6623
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3889
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3481
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2765
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.