硬件: RaspberryPi 3B
系统: 20190710-raspbian-buster

1: 安装依赖

sudo apt-get install autoconf automake libtool
sudo apt-get install autoconf-archive
sudo apt-get install libpng12-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libtiff5-dev

# sudo apt-get install g++
# sudo apt-get install pkg-config
# sudo apt-get install zlib1g-dev

2: 安装Leptonica

sudo apt-get install libleptonica-dev

3: 安装tesseract

sudo apt-get install tesseract-ocr

4: 安装pytesseract

sudo pip install pytesseract