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: