|
|
@@ -219,7 +219,7 @@ class WiredTableRecognition:
|
|
|
# 处理ocr结果
|
|
|
ocr_text, ocr_score = ocr_res
|
|
|
# logger.debug(f"OCR result for box {i}: {ocr_text} with score {ocr_score}")
|
|
|
- if ocr_score < 0.6 or ocr_text in ['1','口','■','(204号', '(20', '(2', '(2号', '(20号']:
|
|
|
+ if ocr_score < 0.6 or ocr_text in ['1','口','■','(204号', '(20', '(2', '(2号', '(20号', '号', '(204']:
|
|
|
# logger.warning(f"Low confidence OCR result for box {i}: {ocr_text} with score {ocr_score}")
|
|
|
box = sorted_polygons[i]
|
|
|
cell_box_map[i] = [[box, "", 0.1]]
|