Comments (4)
you can read DevicePath
/// <summary>
/// 获取过滤器列表
/// </summary>
/// <param name="category"></param>
/// <param name="isVideo">是否视频设备</param>
/// <param name="isWave">是否音频设备</param>
/// <returns></returns>
public static List<DeviceInfo> GetFiltes(Guid category, bool isVideo, bool isWave)
{
var result = new List<DeviceInfo>();
EnumMonikers(category, (moniker, prop) =>
{
try
{
DeviceInfo info = new DeviceInfo();
object value = null;
prop.Read("FriendlyName", ref value, 0);
info.Name = value + string.Empty;
if (isVideo)
{
prop.Read("DevicePath", ref value, 0);
info.DevicePath = (string)value;
}
if (isWave)
{
prop.Read("WaveInID", ref value, 0);
info.WaveInID = value + string.Empty;
}
result.Add(info);
}
catch
{
// can not find Virtual Cam
}
return false; // 継続。
});
return result;
}
public class DeviceInfo
{
/// <summary>
/// 设备名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 标识设备的唯一字符串
/// <para>(仅限视频捕获设备)VT_BSTR</para>
/// </summary>
public string DevicePath { get; set; }
/// <summary>
/// 音频捕获设备的标识符
/// <para>(仅限音频捕获设备)VT_I4</para>
/// </summary>
public string WaveInID { get; set; }
}
from usbcamera.
你的写作救了我。
非常感谢
from usbcamera.
Thank you for your question.
I agree with @yangjieshao 's comment.
Thank you @yangjieshao.
Please read issue #3 also.
from usbcamera.
你的写作救了我。 非常感谢
所以 你为啥 还不关掉这个issues
from usbcamera.
Related Issues (20)
- WPF 每次 BufferToBitmap 的时候都创建新的 WriteableBitmap 岂不是完全没发挥 WriteableBitmap 的性能 HOT 11
- Release taking long time sometimes HOT 1
- How can I get the datas of every frame? HOT 9
- missing events HOT 4
- How can I switch camera? HOT 2
- provide nuget package HOT 4
- Implement IDisposable / IObservable pattern HOT 1
- 需要增加对于部分非标的虚拟摄像头的过滤(It is necessary to increase the filtering of some non-standard virtual cameras) HOT 7
- Problem with showing preview HOT 4
- Memory issues HOT 13
- Add a feature to get plain image data as byte array to not call lock bits over and over again HOT 15
- threads in thread pool may be blocked by this library HOT 4
- Inconsistent Image Quality When Saving Still Capture Monochrome Sensor Data as BMP HOT 8
- Can't able to set brightness and exposure at run time when camera running on different thread HOT 2
- Capture Pin not working on all cameras HOT 3
- happens ArgumentException when I dispose PictureBox's old image. HOT 1
- How can I turn off the usbcamera lights? HOT 9
- why not working in 4K? HOT 6
- Add an IsReady method to see if we can get the image? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usbcamera.