Visual C++ Developer Center > Visual C++ Forums > Visual C++ General > Reading Webcam Data in Visual C++
Ask a questionAsk a question
 

AnswerReading Webcam Data in Visual C++

  • Tuesday, November 03, 2009 4:26 AMPlasmarobo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm working on a project that reads webcam data and interprets it. It's mostly a learning exercise, to see if I can interface with the camera technology. I do seem to be stuck though. The MSDN has a massive amount of information on the use of WIA, but I cannot seem to bake it down into the classes that I need to access. My question is deceptively simple I suppose, because I've searched all over and I couldn't find an answer I could understand. It's this: How do I get a stream of pixels or even raw data from a Webcam in C++? I would like to use as close to pure C++ as I can get here, but I understand that working with the Windows API is going to require a bit of Visual code. Anyone got any pointers or know of any esoteric, but informative articles on this subject? Thanks alot!

Answers

  • Tuesday, November 03, 2009 10:49 PMSheng Jiang 蒋晟MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    WIA is designed for scanner and cameras. If you need live video WIA would be too slow. You need DirectShow if you want fast live video. There is a DirectShow forum under the Windows Client development category if you need help in that.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP

All Replies

  • Tuesday, November 03, 2009 10:49 PMSheng Jiang 蒋晟MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    WIA is designed for scanner and cameras. If you need live video WIA would be too slow. You need DirectShow if you want fast live video. There is a DirectShow forum under the Windows Client development category if you need help in that.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP