|
|
@@ -491,7 +491,8 @@ class ElementProcessors:
|
|
|
if table_html and ocr_boxes and self.table_cell_matcher:
|
|
|
try:
|
|
|
# table_bbox 参数是相对于裁剪后图像的,OCR 框已经是相对于裁剪后图像的
|
|
|
- # 使用裁剪后图像的实际尺寸
|
|
|
+ # 使用裁剪后图像的实际尺寸(旋转后的尺寸)
|
|
|
+ orig_table_h, orig_table_w = cropped_table.shape[:2]
|
|
|
enhanced_html, cells, _, skew_angle = self.table_cell_matcher.enhance_table_html_with_bbox(
|
|
|
html=table_html,
|
|
|
paddle_text_boxes=ocr_boxes,
|