ocr/ocr_util.py
@@ -9,7 +9,7 @@ # 图像识别类 class OcrUtil: __ocr = CnOcr() reader = easyocr.Reader(['en'], gpu=False) reader = easyocr.Reader(['ch_sim','en'], gpu=False) @classmethod def ocr(cls, mat): @@ -48,5 +48,4 @@ if __name__ == "__main__": result = OcrUtil.ocr_num("D:/test1.png", "000977") print(result) print(re.match("首..注", "首版关注"))