# 银行交易流水（单栏、无合并、有线优先）
scene_name: "bank_statement_wired_unet"

description: "银行流水：docling layout + PaddleOCR + MinerU UNet（有线优先，细线表格）"

input:
  supported_formats: [".pdf", ".png", ".jpg", ".jpeg", ".bmp", ".tiff"]
  dpi: 200

preprocessor:
  module: "mineru"
  orientation_classifier:
    enabled: true

layout_detection:
  module: "docling"
  model_name: "docling-layout-old"
  model_dir: ds4sd/docling-layout-old
  device: "cpu"
  conf: 0.3
  num_threads: 4

ocr_recognition:
  module: "mineru"
  language: "ch"
  det_threshold: 0.5
  unclip_ratio: 1.8
  enable_merge_det_boxes: false
  batch_size: 8
  device: "cpu"

# 有线表格识别专用配置
table_recognition_wired:
  use_wired_unet: true
  upscale_ratio: 3.333
  need_ocr: true
  row_threshold: 10
  col_threshold: 15
  ocr_conf_threshold: 0.5
  cell_crop_margin: 2

output:
  create_subdir: false
  save_json: true
  save_page_json: true
  save_markdown: true
  save_page_markdown: true
  save_html: true
  save_layout_image: false
  save_ocr_image: false
  draw_type_label: true
  draw_bbox_number: true
  save_enhanced_json: true
  coordinate_precision: 2
  normalize_numbers: true
