Browse Source

fix: 从识别结果中获取倾斜角度,优化表格处理的准确性

zhch158_admin 9 hours ago
parent
commit
ef447c6c7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ocr_tools/universal_doc_parser/core/element_processors.py

+ 1 - 1
ocr_tools/universal_doc_parser/core/element_processors.py

@@ -421,7 +421,7 @@ class ElementProcessors:
                 'cells': cells,
                 'ocr_boxes': ocr_boxes,
                 'table_angle': table_angle,
-                'skew_angle': 0.0,
+                'skew_angle': wired_res.get('skew_angle', 0.0),  # 从识别结果中获取
                 'ocr_source': ocr_source,
                 'recognition_method': 'wired_unet',
             },