最近項目裏需要做圖片文字識別,調研了幾種方案,整理分享一下。 方案一:Tesseract OCR(本地部署) 開源老牌方案,需要本地安裝。 import pytesseract from PIL import Image text = pytesseract.image_to_string(Image.open('test.jpg'