From f135c433ba0f7662e6ee4c24f96af7c2eb645baa Mon Sep 17 00:00:00 2001 From: UnknownObject Date: Sun, 10 Dec 2023 15:08:15 +0800 Subject: [PATCH] =?UTF-8?q?Ver2.1=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ocr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ocr.py b/ocr.py index 44c82a9..5b178a5 100644 --- a/ocr.py +++ b/ocr.py @@ -25,6 +25,7 @@ class OCR: license_plate = "" for res in result: license_plate += res[-2] # 如果车牌号码是两行的,按行识别出来再拼接起来 + license_plate = cls.SwapChars(license_plate) if lpr_text is not None: license_plate = lpr_text if '\u8b66' in license_plate: