fix(date, ocr): 优化日期匹配逻辑并补充OCR错误处理
- 重构所有文件中的日期匹配正则表达式,添加负前后瞻避免误匹配无效内容 - 为月份和日期添加合法性校验,过滤超出合理范围的日期数值 - 兼容不同版本PaddleOCR PP-Structure的返回结果格式 - 当PaddleOCR识别失败且配置了LLM密钥时,自动切换到LLM引擎
Showing
5 changed files
with
73 additions
and
39 deletions
-
Please register or sign in to post a comment