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
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