View my account

L515 Programming error: pipeline.start(config) RuntimeError: Couldn't resolve requests

Comments

6 comments

  • Official comment
    Zulkifli Halim

    Hello Hariosmk154,

     

    Please add align object and apply it in opencv_viewer_example.py:

    # Configure depth and color streams
    pipeline = rs.pipeline()
    config = rs.config()
    config.enable_stream(rs.stream.depth, 1024, 768, rs.format.z16, 30)
    config.enable_stream(rs.stream.color, 1280, 720, rs.format.bgr8, 30)
    
    # Align objects
    align_to = rs.stream.color
    align = rs.align(align_to)
    
    # Start streaming
    pipeline.start(config)
    
    try:
        while True:
            # Wait for a coherent pair of frames: depth and color
            frames = pipeline.wait_for_frames()
            aligned_frames = align.process(frames)
            depth_frame = aligned_frames.get_depth_frame()
            color_frame = aligned_frames.get_color_frame()

    Regards,

    Zulkifli

    Comment actions Permalink
  • Zulkifli Halim

    Hello Harimomk154,

    Please provide us more detail on the python programs you are running from the examples directory?

     

    Regards,

    Zulkifli

    0
    Comment actions Permalink
  • Hariomk154

    Hi Zulkifli Halim

    I am running the following python programs from directory librealsense/wrappers/python/examples with python3:

    opencv_viewer_example.py, opencv_pointcloud_viewer.py, pyglet_pointcloud_Viewer.py

    0
    Comment actions Permalink
  • Hariomk154

    Hi Zulkifli Halim,

    I also want to know how use L515 lidar camera for counting object on a shelf and measure the dimension of object.If possible please provide the documentation or code for the same. 

     

    Thanks and Regards,

    Hariom Singh

    0
    Comment actions Permalink
  • Zulkifli Halim

    Hi  Hariom Singh,

     

    You can get more information on this article Measuring packages at the speed of light for your second question.

     

    Reards,

    Zulkifli

     

    0
    Comment actions Permalink
  • Jiangningfangzhi

    private void configAndStart() throws Exception {
    try(Config config = new Config())
    {
    config.enableStream(StreamType.DEPTH, 640, 480);
    config.enableStream(StreamType.COLOR, 640, 480);
    // try statement needed here to release resources allocated by the Pipeline:start() method
    config.enableAllStreams();// add this code,it will work!!!!!
    Log.e(TAG, "configAndStart: ok 1");
    try(PipelineProfile pp = mPipeline.start(config)){
    Log.e(TAG, "configAndStart: ok 2");
    }catch (Exception e){
    e.printStackTrace();
    }
    }catch (Exception e){
    e.printStackTrace();
    }
    }

     

    0
    Comment actions Permalink

Please sign in to leave a comment.