Open Stephen12ds opened 1 year ago
i am using this code: import pyrealsense2 as rs
ctx = rs.context()
devices = ctx.query_devices()
if len(devices) == 0: print('No device connected') exit() else: print('Device connected')
pipeline = rs.pipeline() config = rs.config() config.enable_device(devices[0].get_info(rs.camera_info.serial_number)) config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
pipeline.start(config)
while True:
frames = pipeline.wait_for_frames()
depth = frames.get_depth_frame()
if not depth:
continue
# Print a simple text-based representation of the image
coverage = [0] * 64
for y in range(480):
for x in range(640):
dist = depth.get_distance(x, y)
if 0 < dist and dist < 1:
coverage[x // 10] += 1
if y % 20 == 19:
line = ""
for c in coverage:
line += " .:nhBXWW"[c // 25]
coverage = [0] * 64
print(line)
and it picks up a camera connected via usb but not one that is setup over a network
Hi @Stephen12ds Intel are unfortunately unable to assist with questions related to the FRAMOS 'e' series of industrial RealSense-compatible cameras as they are not Intel products. Please contact FRAMOS support by visiting the support page at the link below and clicking the Let's talk button.
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
<Describe your issue / question / feature request / etc..>