PDA

View Full Version : Webcam support in delphi?



noeska
23-12-2007, 06:59 PM
System: Windows XP
Compiler: Delphi 2005
Libararies: OpenGl / VFW

Hello i am looking for information on how to use a webcam with an delphi program. I have looked on some examples but either the do not work or work for a period of time. Also i saw an example using directshow wanting to use even direct3d (yikes).

Now i believe vfw is capeable of capturing from a wabcam device and so together with: http://www.sulaco.co.za/opengl_project_AVI_video_textures.htm thing could work out. The only thing with this example is that it bugs on my pc.

This example (http://www.delphipraxis.net/topic71146.html) should use vfw to display the image from the webcam on a planel. The only thing is that it does not offer an compatible mode. E.g. it offers 320x240 instead of 320x200 which is supported by my webcam.

So help is appreciated.

Once i get the basics to work i want to take it a step further and create something like: http://www.fix8.com/ .

JernejL
23-12-2007, 08:02 PM
Answer: dspack.

http://www.progdigy.com/modules.php?name=DSPack

noeska
24-12-2007, 03:01 PM
But that one uses directx as it seems.

JernejL
24-12-2007, 05:26 PM
You want obsolete & unsupported VFW or DX? i'm affraid those two are the only viable choices, unless you want to make a directshow driver wrapper / interface..

WILL
24-12-2007, 08:30 PM
Is there noting that is crossplatform? What about SDL?

noeska
24-12-2007, 09:41 PM
Would be nice if sdl had a feature for this. But i am afraid it does not.

Also vfw does not work with my webcam. It only gives black screens.