diff --git a/limap/base/bindings.cc b/limap/base/bindings.cc index 55a1b0e..9266cf7 100644 --- a/limap/base/bindings.cc +++ b/limap/base/bindings.cc @@ -687,7 +687,7 @@ void bind_line_linker(py::module &m) { void bind_camera(py::module &m) { // TODO: use pycolmap - py::enum_ PyCameraModelId(m, "CameraModelId"); + py::enum_ PyCameraModelId(m, "CameraModelId", py::module_local()); PyCameraModelId.value("INVALID", colmap::CameraModelId::kInvalid); PyCameraModelId.value("SIMPLE_PINHOLE", colmap::CameraModelId::kSimplePinhole);