import pyrealsense2
as rs
ctx
= rs
.context
()
if len(ctx
.devices
) > 0:
for d
in ctx
.devices
:
print('Found device: ',
d
.get_info
(rs
.camera_info
.name
), ' ',
d
.get_info
(rs
.camera_info
.serial_number
))
else:
print("No Intel Device connected")
参考文章1:ModuleNotFoundError: No module named ‘pybackend2’
参考文章2:Device List doesnot work with python bindings #2332