Capture frames from a WebCam

N

Nikolay Petrov

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 clipboard. Then I reed
the image from there. I am using a timer to capture frames from the
webcam and this timer have small interval 0.5-1 sec. And what I get is
useless windows clipboard. Every time i try to use it from other
application, it's contents are replaced too fast with the captured
frames.
Any ideas how to fix te thing?

thanks in advance
 
A

Allen St.Clair

I have tried to do that, but failed. The same questions as yours. Maybe we
should use C++ (not managed code).

I've viewed the DirectX (Managed Version), found nothing. The support of
WebCam is only included in DirectX normal version, not in managed version.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top