📅  最后修改于: 2022-03-11 14:46:54.991000             🧑  作者: Mango
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract'
print(pytesseract.image_to_string(r'D:\examplepdf2image.png'))