1

I'm capturing images from my webcam with some code that mainly bases on this: Using the Sample Grabber.

Here I only get the default resolution of 640x480 while the connected camera is able to show more (other capture applications show a bigger resolution).

So, how can I:

  1. retrieve the list of available resolutions
  2. set one of these resolutions so that the captured image comes with it?
Roman R.
  • 68,205
  • 6
  • 94
  • 158
Elmi
  • 5,899
  • 15
  • 72
  • 143

1 Answers1

2

IAMStreamConfig interface lists capabilities and lets you select resolution of interest. enumerating media types on an unconnected yet pin will list you specific media types (amd resolutions) the camera advertises as supported.

More on this (an links from there):

Community
  • 1
  • 1
Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • Thanks! The MSDN-links mentioned in these posting amazingly tell me something about "deprecated API". Seems like MS has changed their interfaces again :-( But what is the current, preferred method of capturing images from a camera? – Elmi Apr 12 '13 at 06:25
  • 1
    Yes it has been saying this for years already but it is still how you are to do it. – Roman R. Apr 12 '13 at 06:38