Items with no label
3335 Discussions

Select between two cameras (SR300)

OJaco
Novice
2,233 Views

Hi

Can somebody give me a code example in c# on how to select input (depth images) between two SR300 (BlasterX Sense3D) cameras?

The cameras are connected to two different USB 3.0 connectors.

0 Kudos
4 Replies
MartyG
Honored Contributor III
190 Views

I think what you are asking is how to toggle between two BlasterX Senz3D SR300-compatible cameras attached to the same machine and select which camera is the active one taking a depth scan?

A function called Enumeration can determine which camera device is the active one.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_essential_enumerate_io_devices.html Intel® RealSense™ SDK 2016 R2 Documentation

The article linked to below has a short tutorial on the basic principles of enumerating cameras. The sample scripts are in C++, but may be adaptable to C# by researching the function names in the script - such as PXCSession::ImplDesc - to find equivalent C# code.

https://software.intel.com/en-us/articles/tutorial-enumerating-modules-and-camera-devices How to Enumerate Modules and Camera Devices Using the Intel® RealSense™ SDK 2016 R1 | Intel® Software

OJaco
Novice
190 Views

Thanks for your answer.

Yes, thats right.

But how do I SET the active camera?

I cant find in the codesamples you are refering to.

Can you send me another example or havent I understood the examples?

0 Kudos
OJaco
Novice
190 Views

Thanks for your answer.

Yes, thats right.

But how do I SET the active camera?

I cant find in the codesamples you are refering to.

Can you send me another example or havent I understood the examples?

0 Kudos
MartyG
Honored Contributor III
190 Views

I am not an expert in programming RealSense streams, unfortunately. I believe the correct order of events in this case though is:

1. Enumerate the devices to select the camera to use.

2. Enumerate the streams to select which type of stream to use (e.g depth) on the selected camera.

3. Enumerate the configuration of the selected stream.

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_essential_io_devices_enumeration_and_se.html Intel® RealSense™ SDK 2016 R2 Documentation

0 Kudos
Reply