Remove unused OCR code

This commit is contained in:
2023-11-17 04:13:54 +08:00
parent 65689e3df5
commit 61aea5c20e
2 changed files with 21 additions and 11 deletions

11
main.py
View File

@@ -55,14 +55,3 @@ for row in rows:
# 关闭游标和连接
cursor.close()
conn.close()
'''
from cnocr import CnOcr
img_fp = './x.jpg'
ocr = CnOcr(rec_model_name='ch_PP-OCRv3') # 所有参数都使用默认值
out = ocr.ocr(img_fp)
print(out)
'''