From 28126bc3be75721b082650a5eb6c0db8b044edf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=BE=B3?= Date: Sat, 28 Dec 2024 22:05:13 +0800 Subject: [PATCH] =?UTF-8?q?monitor=E8=BE=93=E5=87=BA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odm_preprocess.py | 6 +++--- utils/odm_monitor.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/odm_preprocess.py b/odm_preprocess.py index f79e108..adb7dd5 100644 --- a/odm_preprocess.py +++ b/odm_preprocess.py @@ -246,7 +246,7 @@ class ImagePreprocessor: f"grid_{grid_idx + 1}", "project", "odm_orthophoto", - "odm_orthophoto.tif" + "odm_orthophoto.original.tif" ) # 检查TIF文件是否存在 @@ -318,8 +318,8 @@ class ImagePreprocessor: if __name__ == "__main__": # 创建配置 config = PreprocessConfig( - image_dir=r"G:\error_data\20241024100834\project\images", - output_dir=r"G:\ODM_output\20241024100834", + image_dir=r"G:\error_data\20241104140457\code\images", + output_dir=r"G:\ODM_output\20241104140457", cluster_eps=0.01, cluster_min_samples=5, diff --git a/utils/odm_monitor.py b/utils/odm_monitor.py index 4eb43a9..9705523 100644 --- a/utils/odm_monitor.py +++ b/utils/odm_monitor.py @@ -52,8 +52,8 @@ class ODMProcessMonitor: # 检查执行结果 if self._check_success(grid_dir): - self.logger.info(f"网格 {grid_idx + 1} 处理成功") self.logger.info(stdout, stderr) + self.logger.info(f"网格 {grid_idx + 1} 处理成功") return True, "" return False, f"网格 {grid_idx + 1} 处理失败"