/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #如果没安装brew
brew install pip #如果没安装pip
brew install tesseract  #安装tesseract
pip install pytesseract  #安装pytesseract包
import sys, os
import pytesseract
from PIL import Image
yzm = str(pytesseract.image_to_string(Image.open('yzm.jpg')))
print(yzm)

相关文章:

  • 2022-01-16
  • 2021-05-18
  • 2021-11-07
  • 2022-03-02
  • 2021-12-11
  • 2022-02-18
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案