USB (WebCams) を使用して PC に接続されているすべてのカメラ デバイスのリストだけでなく、ラップトップに内蔵されているカメラのリストを取得するにはどうすればよいですか。
			
			7159 次
		
2 に答える
            7        
        
		
私は以前にこれを行ったことがあります - http://directshownet.sourceforge.net/を使用して DirectShow へのまともな .net インターフェイスを提供してから、次のコードを使用するだけです:
  DsDevice[] captureDevices;
  // Get the set of directshow devices that are video inputs.
  captureDevices = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice);    
  for (int idx = 0; idx < captureDevices.Length; idx++)
  {
    // Do something with the device here...
  }
于 2014-10-02T11:37:44.220   に答える