@@ -68,7 +68,9 @@ class TableCoordinateUtils:
Returns:
转换后的字典,或 None(如果无效)
"""
- if not ocr_poly or not text:
+ # if not ocr_poly or not text:
+ # 如果没有 ocr_poly,则返回 None, 文字为空字符串也需要返回转换后的字典
+ if not ocr_poly:
return None
poly = []