L515 Programming error: pipeline.start(config) RuntimeError: Couldn't resolve requests
Hi,
I am using L515 Lidar based camera. It is streaming fine by using "realsense-viewer" application. But when I am running python programs from examples directory. It is giving me Runtime error: Couldn't resolve requests:
Note: I have tried it with all possible resolutions (1026x768, 640x480, 320x240) supported by L515 Lidar camera.
Please let me know, how to solve this error
-
Official comment
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 -
Hi Hariom Singh,
You can get more information on this article Measuring packages at the speed of light for your second question.
Reards,
Zulkifli
-
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();
}
}
Please sign in to leave a comment.
Comments
6 comments