Explorar o código

fix(text_filler): 更新OCR置信度阈值以提高识别准确性

zhch158_admin hai 2 semanas
pai
achega
ad38d90afc

+ 1 - 1
ocr_tools/universal_doc_parser/models/adapters/wired_table/text_filling.py

@@ -28,7 +28,7 @@ class TextFiller:
         """
         """
         self.ocr_engine = ocr_engine
         self.ocr_engine = ocr_engine
         self.cell_crop_margin: int = config.get("cell_crop_margin", 2)
         self.cell_crop_margin: int = config.get("cell_crop_margin", 2)
-        self.ocr_conf_threshold: float = config.get("ocr_conf_threshold", 0.8)  # 单元格 OCR 置信度阈值
+        self.ocr_conf_threshold: float = config.get("ocr_conf_threshold", 0.9)  # 单元格 OCR 置信度阈值
         
         
         # 跨单元格检测配置参数
         # 跨单元格检测配置参数
         self.overlap_threshold_horizontal: float = config.get("overlap_threshold_horizontal", 0.2)
         self.overlap_threshold_horizontal: float = config.get("overlap_threshold_horizontal", 0.2)