9 import pyrealsense2
as rs
21 config.enable_stream(rs.stream.depth)
28 colorizer = rs.colorizer()
32 frames = pipe.wait_for_frames()
33 colorized = colorizer.process(frames)
36 ply = rs.save_to_ply(
"1.ply")
40 ply.set_option(rs.save_to_ply.option_ply_binary,
False)
41 ply.set_option(rs.save_to_ply.option_ply_normals,
True)
43 print(
"Saving to 1.ply...")
45 ply.process(colorized)
static std::string print(const transformation &tf)