IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.63k stars 4.83k forks source link

VS Code can't find L515 Camera #13522

Open dwu006 opened 3 days ago

dwu006 commented 3 days ago

Required Info
Camera Model L515
Firmware Version 1.5.8.1
Operating System & Version Win 11
Kernel Version (Linux Only) N/A
Platform PC
SDK Version Intel.RealSense.SDK-WIN10-2.54.2.5684
Language python
Segment

Issue Description

The latest IntelRealSense Viewer couldnt detect my camera, so I went down to the first one that could and that was 2.54.2. The viwer can detect my camera and I can also use both rgb and depth camera from there. Both cameras are also detected in Device Manager. When I try running open cv viewer in pythonfrom samples(wrappers/python/examples/opencv_viewer_example.py) (from the latest version because I couldnt find it in 2.54.2- maybe this could be the reason) I get this error:

pipeline_profile = config.resolve(pipeline_wrapper)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: No device connected

I also run some other code:

ctx = rs.context()
devices = ctx.query_devices()
print(f"Available devices: {ctx.query_devices()}")
print(f"Connected RealSense devices: {len(devices)}")

Which I get this:

Available devices: <pyrealsense2.pyrealsense2.device_list object at 0x000001FDE4DB6DB0>
Connected RealSense devices: 0

Thank you for your help!

MartyG-RealSense commented 2 days ago

Hi @dwu006 Support for the L515 camera model was removed in RealSense SDK 2.54.1 as it is a retired camera model. So you will need to go a little further back to the 2.53.1 version in order for the SDK and Viewer to be able to detect L515.

If you visit the link below then you can download and run Intel.RealSense.Viewer.exe from the 'Assets' file list at the bottom of the page to obtain the 2.53.1 version of the Viewer and quickly test whether the L515 becomes detectable.

https://github.com/IntelRealSense/librealsense/releases/tag/v2.53.1

image