View my account

Can I use the depth camera alone without using the RGB camera?

Comments

3 comments

  • MartyX Grover

    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.

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/Documentation/cookbook.md#generics-support

    0
    Comment actions Permalink
  • 504217624

    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);
    0
    Comment actions Permalink
  • MartyX Grover

    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);

    0
    Comment actions Permalink

Please sign in to leave a comment.