Skip to content

Commit

Permalink
add python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
kielnino authored Dec 16, 2024
1 parent 51cfa7e commit cbe3922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions opensfm/src/map/pymap.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ class TracksManager:
def num_shots(self) -> int: ...
def num_tracks(self) -> int: ...
def remove_observation(self, arg0: str, arg1: str) -> None: ...
def remove_track(self, arg0: str) -> None: ...
def write_to_file(self, arg0: str) -> None: ...

Angular: "ErrorType"
Expand Down
1 change: 1 addition & 0 deletions opensfm/src/map/python/pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ PYBIND11_MODULE(pymap, m) {
&map::TracksManager::MergeTracksManager)
.def("add_observation", &map::TracksManager::AddObservation)
.def("remove_observation", &map::TracksManager::RemoveObservation)
.def("remove_track", &map::TracksManager::RemoveTrack)
.def("num_shots", &map::TracksManager::NumShots)
.def("num_tracks", &map::TracksManager::NumTracks)
.def("get_shot_ids", &map::TracksManager::GetShotIds)
Expand Down

0 comments on commit cbe3922

Please sign in to comment.