error in export_to_ply() in pyglet_pointcloud_viewer.py
Can not save ply in example. The rest works. I hadn't change any piece of code in example.
Traceback (most recent call last):
File "/pyglet_pointcloud_viewer.py", line 467, in
Invoked with: <pyrealsense2.pyrealsense2.points object at 0x7fa5240b8a08>, './out.ply', <pyrealsense2.pyrealsense2.frame object at 0x7fa5240b8c70>
| Required Info | |
|---|---|
| Camera Model | { D415 } |
| Operating System & Version | Ubuntu 18.04 |
| Version of SDK | pyrealsense2-2.21.0.776 |
@Leo16112 The error was caused incompatible type. Please modify https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/pyglet_pointcloud_viewer.py#L391 to below and try again. Thanks!
other_frame = frames.first(other_stream).as_video_frame()
@Leo16112 Did you get it through? Looking forward to your update. Thanks!
@Leo16112 Will close this ticket if no other questions. Thanks!
Hello, thank you for reply. It worked for me.