- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In my application I have some code borrowed from the RawStreams sample which retrieves a list of RealSense devices currently available so if a user has an F200 and an R200 installed and attached, for example, they can choose which one they want to use. However, the code doesn't only get RealSense devices, it also returns any other cameras currently attached, so if it's running on a laptop or tablet it'll return the device webcam(s) too.
Is there any way to determine whether a device is RealSense-capable or not? I don't want to do anything like "if device.name.contains("realsense")" because what if it gets rebranded etc? I notice that in the deviceInfo, the DUID for my R200 is some long number whereas the same for my device webcam is 0. Will it always be the case that a non-realsense device will have a DUID of 0? Or is there a more robust marker? I don't want to have to change my code each time a new device comes out.
Thanks,
James
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
James, you can use QueryDeviceInfo API and check model field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks both, looks to be working well.
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page