Skip to content

Commit

Permalink
Update changelog, add pathlib support to RGBDVideoReader
Browse files Browse the repository at this point in the history
  • Loading branch information
sitic committed Jan 29, 2024
1 parent a8416aa commit 75717c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- Fix geometry picker Error when LineSet objects are presented (PR #6499)
- Fix mis-configured application .desktop link for the Open3D viewer when installing to a custom path (PR #6599)
- Fix regression in printing cuda tensor from PR #6444 🐛
- Add Python pathlib support for file IO (PR #6619)

## 0.13

Expand Down
8 changes: 6 additions & 2 deletions cpp/pybind/t/io/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ void pybind_sensor(py::module &m) {
std::unique_ptr<RGBDVideoReader>>
rgbd_video_reader(m, "RGBDVideoReader", "RGBD Video file reader.");
rgbd_video_reader.def(py::init<>())
.def_static("create", &RGBDVideoReader::Create, "filename"_a,
"Create RGBD video reader based on filename")
.def_static(
"create",
[](const fs::path &filename) {
return RGBDVideoReader::Create(filename.string());
},
"filename"_a, "Create RGBD video reader based on filename")
.def("save_frames", &RGBDVideoReader::SaveFrames, "frame_path"_a,
"start_time_us"_a = 0, "end_time_us"_a = UINT64_MAX,
"Save synchronized and aligned individual frames to "
Expand Down

0 comments on commit 75717c2

Please sign in to comment.