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} 处理失败"