Commit d86fea75 authored by Inès EL HADRI's avatar Inès EL HADRI 💤

add camera simple test

parent 216fef41
#!/usr/bin/env python3
###############################################
## Simple Request ##
###############################################
import pyrealsense2 as rs
# Configure depth and color streams
pipeline = rs.pipeline()
config = rs.config()
# Get device product line for setting a supporting resolution
pipeline_wrapper = rs.pipeline_wrapper(pipeline)
pipeline_profile = config.resolve(pipeline_wrapper)
device = pipeline_profile.get_device()
device_product_line = str(device.get_info(rs.camera_info.product_line))
print( f"Connect: {device_product_line}" )
for s in device.sensors:
print( "Name:" + s.get_info(rs.camera_info.name) )
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment