from PIL import Image
import pytesseract
import time
time1 = time.time()
img_path = 'C:/Users/Administrator/Desktop/ocr/109.png'
text = pytesseract.image_to_string(Image.open(img_path), lang='chi_sim')
time2 = time.time()
print(time2 - time1)
print(text)
python tesseract OCR
最新推荐文章于 2020-12-04 08:56:29 发布