text = pytesseract.image_to_string(img, lang='eng')
print(text)
測試圖片
因版本問題會出現 error
pytesseract.pytesseract.TesseractNotFoundError: C:\Program Files (x86)\Tesseract-OCR esseract.exe is not installed or it's not in your PATH. See README file for more information.