图片内容是中文还是英文呢? 如果是中文就要安装对应的语言包,并在 pytesseract 库的 image_to_string() 方法里加个参数 lang='chi_sim',这个就是引用对应的中文语言包,中文语言包的全名是 chi_sim.traineddata。
注:图片中的字体尽量用标准字体