示例#1
0
 def save_navigation_graph(self, navigation_graphs):
     with open(self.__navigation_graph_file(), 'w') as fout:
         fout.write(io.json_dumps(navigation_graphs))
示例#2
0
 def save_reconstruction(self, reconstruction, filename=None, indent=4):
     with open(self.__reconstruction_file(filename), 'w') as fout:
         fout.write(io.json_dumps(io.reconstructions_to_json(reconstruction)))
示例#3
0
 def save_camera_models(self, camera_models):
     """Save camera models data"""
     with open(self.__camera_models_file(), 'w') as fout:
         obj = io.cameras_to_json(camera_models)
         fout.write(io.json_dumps(obj))
示例#4
0
 def save_exif(self, image, data):
     io.mkdir_p(self.__exif_path())
     with open(self.__exif_file(image), 'w') as fout:
         fout.write(io.json_dumps(data))