[Lazarus] Photo Capture on Windows

Marco van de Voort marcov at stack.nl
Wed Feb 17 12:48:54 CET 2010


On Wed, Feb 17, 2010 at 08:18:26AM +0000, Paul Michell wrote:
> Has anyone had any experience of photo capture in an LCL app on Windows?
> I am working on a field data recording program for a tablet PC with an embedded 
> camera. I would like to be able to capture a high res. photograph with this 
> and so far I have tried VFW, TWAIN, WIA and DirectShow with the following 
> results:
 
> VFW
> This worked well, but the resolution seems to be fixed at WebCam type levels 
> and access to the frame-buffer is non-trivial.
 
> TWAIN
> This works, but it is slow and always throws up the default dialog box and I 
> can't find a way to switch this off.
> 
> WIA
> This works but is unusably slow! From pressing the camera button to generating 
> the memory bitmap takes over 10 seconds.
> 
> DirectShow
> I have seen some good Delphi samples that produce high res. images  with sub-
> second response times, but I can't get them to work with FPC.
> 
> Any hints or suggestions would be greatly appreciated. 

If open, I would like to see your sources. I have something that we use on
fairs for lazarus demonstration purposes, but it is VFW only, and geared
towards playstation 2 eyetoy cameras.




More information about the Lazarus mailing list