def save_navigation_graph(self, navigation_graphs): with open(self.__navigation_graph_file(), 'w') as fout: fout.write(io.json_dumps(navigation_graphs))
def save_reconstruction(self, reconstruction, filename=None, indent=4): with open(self.__reconstruction_file(filename), 'w') as fout: fout.write(io.json_dumps(reconstruction))
def save_camera_models(self, camera_models): """Save camera models data""" with open(self.__camera_models_file(), 'w') as fout: fout.write(io.json_dumps(camera_models))
def save_exif(self, image, data): with open(self.__exif_file(image), 'w') as fout: fout.write(io.json_dumps(data))