Parcourir la source

feat(config): add debug options for layout detection in bank_statement_wired_unet.yaml

- Introduced debug options to the configuration file, allowing for visual output of layout detection results.
- Enabled debugging features to assist in troubleshooting and enhance the visibility of processing outcomes.
zhch158_admin il y a 3 jours
Parent
commit
ae1a21b02c

+ 7 - 0
ocr_tools/universal_doc_parser/config/bank_statement_wired_unet.yaml

@@ -28,6 +28,13 @@ layout_detection:
     min_text_width_ratio: 0.4         # 最小宽度占比(40%)
     min_text_height_ratio: 0.3        # 最小高度占比(30%)
 
+  # Debug 可视化配置(与 MinerUWiredTableRecognizer.DebugOptions 对齐)
+  # 默认关闭。开启后将保存:layout检测结果
+  debug_options:
+    enabled: true               # 是否开启调试可视化输出
+    output_dir: null             # 调试输出目录;null不输出
+    prefix: ""                  # 保存文件名前缀(如设置为页码)
+
 ocr_recognition:
   module: "mineru"
   language: "ch"