format输出文件格式

This commit is contained in:
龙澳 2025-01-13 10:59:53 +08:00
parent 0e8fb34e7a
commit 3e2f9b7f85

View File

@ -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"),