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?
有帮助吗?

解决方案

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):

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top