diff --git a/odm_preprocess.py b/odm_preprocess.py index 045565c..557a5a9 100644 --- a/odm_preprocess.py +++ b/odm_preprocess.py @@ -269,6 +269,10 @@ class ImagePreprocessor: ) shutil.copytree(os.path.join(src_dir, "odm_texturing"), os.path.join(self.config.output_dir, "texturing")) + os.rename(os.path.join(self.config.output_dir, "texturing", "odm_textured_model_geo.obj"), + os.path.join(self.config.output_dir, "texturing", "textured_model.obj")) + os.rename(os.path.join(self.config.output_dir, "texturing", "odm_textured_model_geo.mtl"), + os.path.join(self.config.output_dir, "texturing", "textured_model.mtl")) elif self.config.mode == "重建模式": shutil.copy2(os.path.join(src_dir, "odm_orthophoto", "odm_orthophoto.tif"), os.path.join(self.config.output_dir, @@ -276,10 +280,14 @@ class ImagePreprocessor: ) shutil.copy2(os.path.join(src_dir, "odm_georeferencing", "odm_georeferenced_model.laz"), os.path.join(self.config.output_dir, - "odm_georeferenced_model.laz") + "pointcloud.laz") ) shutil.copytree(os.path.join(src_dir, "odm_texturing"), os.path.join(self.config.output_dir, "texturing")) + os.rename(os.path.join(self.config.output_dir, "texturing", "odm_textured_model_geo.obj"), + os.path.join(self.config.output_dir, "texturing", "textured_model.obj")) + os.rename(os.path.join(self.config.output_dir, "texturing", "odm_textured_model_geo.mtl"), + os.path.join(self.config.output_dir, "texturing", "textured_model.mtl")) if self.config.produce_dem: shutil.copy2( os.path.join(src_dir, "odm_dem", "dsm.tif"),