Capture frames from a WebCam

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nikolay Petrov

    #1

    Capture frames from a WebCam

    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

  • Allen St.Clair

    #2
    Re: Capture frames from a WebCam

    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.


    Comment

    Working...