Skip to content

Commit

Permalink
Updated example code in tuotrial.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Jan 15, 2021
1 parent c65ab3b commit b17387c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wrappers/open3d/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ documentation](http://www.open3d.org/docs/latest/cpp_api/classopen3d_1_1t_1_1io_
using namespace open3d;
t::io::RSBagReader bag_reader;
bag_reader.Open(bag_filename);
auto im_rgbd = bag_reader.NextFrame();
while (!bag_reader.IsEOF()) {
im_rgbd = bag_reader.NextFrame();
// process im_rgbd.depth_ and im_rgbd.color_
im_rgbd = bag_reader.NextFrame();
}
bag_reader.Close();

Expand All @@ -70,9 +71,10 @@ Here is the corresponding Python code. The Python API has equivalent functionali
import open3d as o3d
bag_reader = o3d.t.io.RSBagReader()
bag_reader.open(bag_filename)
im_rgbd = bag_reader.next_frame()
while not bag_reader.is_eof():
im_rgbd = bag_reader.next_frame()
# process im_rgbd.depth and im_rgbd.color
im_rgbd = bag_reader.next_frame()

bag_reader.close()

Expand Down

0 comments on commit b17387c

Please sign in to comment.