Can I use the depth camera alone without using the RGB camera?
For example, I have opened the camera and used the RBG camera, and I want to obtain depth information through the C# SDK. Is this possible?
All your suggestions are welcome. Thanks.
-
Yes, you can use depth on its own without also using RGB. The link below has a simple C# example script for displaying the distance to an observed object / surface as a numeric value in meters.
https://dev.intelrealsense.com/docs/csharp-wrapper#section-hello-world
Intel's C# Cookbook page of examples also provides a script for generating a depth pointcloud.
-
Thank you, I tried it by example. When I turn on the computer camera, when I execute this step, the program reports an error
var pipe = new Pipeline();
pipe.Start();System.Exception:“Camera already streaming”
Should I add configuration in [pipe.Start()] ? I tried like this, but still the same error...
var pipe = new Pipeline();
Config config = new Config();
config.DisableStream(Stream.Color, 2);
pipe.Start(config); -
If a custom configuration is defined then its name should be added inside the brackets of the pipe start instruction, otherwise the custom configuration is ignored.
You should not need to use an index number of '2' for the color stream. Indexes 1 and 2 are used with the Infrared streams to differentiate between the left and right infrared stream.
var pipe = new Pipeline();
Config config = new Config();config.EnableStream(Stream.Depth);
pipe.Start(config);
Please sign in to leave a comment.
Comments
3 comments