From 72039e480b0e14295fba3d86a1505df4afd2b728 Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Fri, 24 Jul 2026 01:26:47 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20PL=20=E4=BB=8E=20OCR=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=9B=BD=E5=AE=B6=E7=A7=BB=E9=99=A4(=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=9C=AA=E6=B3=A8=E5=86=8C=20config.py)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/ocr/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/ocr/models.py b/api/ocr/models.py index c217d69..98543ec 100644 --- a/api/ocr/models.py +++ b/api/ocr/models.py @@ -37,14 +37,14 @@ class OcrResult(BaseModel): # OCR 服务已有分类器模型的国家(版面见 api.md §4) -SUPPORTED_COUNTRIES = {"US", "UK", "DE", "MX", "PL"} +SUPPORTED_COUNTRIES = {"US", "UK", "DE", "MX"} # ISO 国家代码 / 中文国名 → OCR 国家代码 _COUNTRY_MAP: dict[str, str] = { # 代码 - "GB": "UK", "UK": "UK", "US": "US", "DE": "DE", "MX": "MX", "PL": "PL", + "GB": "UK", "UK": "UK", "US": "US", "DE": "DE", "MX": "MX", # 中文名(SDS countryName 可能用) - "英国": "UK", "美国": "US", "德国": "DE", "墨西哥": "MX", "波兰": "PL", + "英国": "UK", "美国": "US", "德国": "DE", "墨西哥": "MX", }