From 3e2f9b7f85d4f30db784491afc018c457bdac19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=BE=B3?= Date: Mon, 13 Jan 2025 10:59:53 +0800 Subject: [PATCH] =?UTF-8?q?format=E8=BE=93=E5=87=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odm_preprocess.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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"),