Exemple #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))
Exemple #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(reconstruction))
Exemple #3
0
 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))
Exemple #4
0
 def save_exif(self, image, data):
     with open(self.__exif_file(image), 'w') as fout:
         fout.write(io.json_dumps(data))