CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2005
    Posts
    4

    Question Still image capture from a web cam

    Hello,

    I am working on a project that needs to take a still image from a Creative WebCam and save that image to the disk. I need to know how to use the camera to perform these operations.

    Any help will be greatly appreciated.

  2. #2
    Join Date
    Aug 2005
    Posts
    104

    Re: Still image capture from a web cam

    You need to figure out what kind of APIs the webcam driver supports, first.

    If it supports WIA (windows image aquisition), your job might be really easy (I know with .NET WIA apis, it seemed to be just a few lines of code).

    I wrote an image capture program for a creative webcam, and it only supported DirectShow. It was not easy, and it took hundreds of lines of code, and learning all about DirectShow... not something I really wanted to do :-(.

  3. #3
    Join Date
    Aug 2005
    Posts
    4

    Re: Still image capture from a web cam

    As far as I can tell my web cam is not WIA compatible. I guess I will have to start learning DirectShow. Any suggestions on where to start?

  4. #4
    Join Date
    Jun 2004
    Posts
    170

    Re: Still image capture from a web cam

    Last edited by TOMNKZ; August 9th, 2005 at 12:44 AM.

  5. #5
    Join Date
    Aug 2005
    Posts
    4

    Re: Still image capture from a web cam

    I don't currently have the DirectX SDK and I don't want to download it because it is huge and I have dial-up. Microsoft doesn't seem to offer it on a CD. Maybe there is somewhere else that I could get it on CD?

  6. #6
    Join Date
    May 2005
    Posts
    4,954

    Re: Still image capture from a web cam

    you can use DirectShow however you can also use Video For Windows all the capXXX api. its very easy.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  7. #7
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    628

    Re: Still image capture from a web cam

    http://www.codeguru.com/Cpp/misc/mis...cle.php/c3771/

    that actually displays the stream from the webcam. but someone modified it to take a picture. i can't fidn the link.. but do some google searches using ken varn's name and you will find it. don't have time right now! sorry..

  8. #8
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    628

    Re: Still image capture from a web cam

    found the link. the proejct here takes a pic using a webcam.

    http://www.codeguru.com/Cpp/G-M/mult...cle.php/c4723/

  9. #9
    Join Date
    Sep 2012
    Posts
    2

    Re: Still image capture from a web cam

    I am using CLScan (http://commandlinescanning.com/downloads.html) and it rocks. The best thing is I implemented it into my own C++ project and now it looks like I did it. All of the users are delighted!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured