Re:Accessing QuickCam USB
Quote
"Harry" <h...@iinet.net.au> wrote:
>Is it possible to control the camera, take photo and analyse it, all from
>Delphi prog ?
Depends on what you mean by "control the camera".
Using the Video For Windows capture stuff (AVICAP in VFW.H -- several folks
have converted this to Delphi), you can capture a frame at a time, or do
streaming capture. In both instances, you get back a bitmap, which you are
free to process to your hearts content.
However, there is no standard API for doing things like adjusting focus,
brightness, exposure time, pan/zoom and so on. Each camera vendor does
this in a slightly different way.
Alternatively, if you're on NT or Win98, you might be able to use
DirectShow to do the capture. I have not seen this done from Delphi, but
since DirectShow is just COM, it should be possible. In that case, the API
allows the driver writer to expose properties beyond the standard set;
camera adjustments will often be exposed that way.
--
- Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.