For CentOS 7 run the following as root:

yum-config-manager --add-repo https://download.opensuse.org/repositories/home:/Alexander_Pozdnyakov/CentOS_7/
sudo rpm --import https://build.opensuse.org/projects/home:Alexander_Pozdnyakov/public_key
yum update
yum install tesseract 
yum install tesseract-langpack-deu


windows下载地址:https://github.com/UB-Mannheim/tesseract/wiki

2.python安装:

  pip install pytesseract

PILLOW
 
3.使用代码:
  
import pytesseract
from PIL import Image

image = Image.open('timg.jpg')
code = pytesseract.image_to_string(image)
print(code)

 

 

 

参考网址:https://blog.csdn.net/qq_37193537/article/details/81335165

https://blog.csdn.net/qq_14998713/article/details/78824859

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-10-31
  • 2021-06-21
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-04-25
  • 2022-12-23
相关资源
相似解决方案