Capturing video from a usb webcam

Posted on 2005-05-01
Last Modified: 2008-02-26

I want to build a program to process frames/images from a video in real time.
So, my first step is to build an application in Visual C++ in order to get images with my usb webcam and I should be able to see those images in a window in my computer. But I don't know how to do it. I suppose that there should be some code already available in the net, but where? Can anyone help me?

Thanks a lot
Question by:gabmorod
    LVL 55

    Assisted Solution

    by:Jaime Olivares

    Author Comment

    Hola Jaime

    I've been looking to the first example, but they use a program that i cannot find called GraphEdit.... where is that program?

    Thanks very much for your help!

    Author Comment

    Well, I have found it...! No worries about that! The problem was my version of SDK (the Graphedit has disappear after the one of Summer 04!!!)   ;)

    I have now two filters conected and I have managed so that I can see my camera... but how can I integrate this into a Visual C++ program??? I mean, how can I generate a code to put inside of a C++ program?
    LVL 55

    Expert Comment

    by:Jaime Olivares
    Have you tried all examples or just first one?
    LVL 9

    Accepted Solution

    another option:
    samples or examples folder has a MSVC project in it. it's called "simple". does more than just displaying the captured image but it's pretty trivial to get rid of extraneous code.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
    Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now