Jump to content

C++ Bitmap Capture From USB Camera

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Meanstreak

Meanstreak

    Newbie

  • Members
  • Pip
  • 4 posts
Hi,

I'm looking for code to capture an image from a usb webcam and store it as a bitmap, so far all I've been able to find is pointers to vfw (video for windows) header and library file but I cannot understand how to utilise these. I'm using Visual C++ 6.0.

Thanks in Advance,

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,710 posts
What camera? Do you have the driver libraries and/or an SDK?

#3
Meanstreak

Meanstreak

    Newbie

  • Members
  • Pip
  • 4 posts
The camera I have is a logitech webcam, no SDK for it and I don't know about driver libraries. Is it possible to write code to find any usb camera and then grab and image from such or would the code be tied to a particular camera?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Different cameras use slightly different file formats. The RAW format isn't a single format at all. You will probably need an SDK for it.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Meanstreak

Meanstreak

    Newbie

  • Members
  • Pip
  • 4 posts
ok I'll try to find an SDK for the camera, thanks