tesseract3 以及chi_sim数据包
下载安装包 https://github.com/UB-Mannheim/tesseract/wiki
apt-cache madison tesseract-ocr
apt-get install tesseract-ocr
wget http://www.leptonica.org/source/leptonica-1.74.4.tar.gz
tar -xvf leptonica-1.74.4.tar.gz
cd leptonica-1.74.4
./configure
make
make install
yum install automake
yum install libtool
wget https://github.com/tesseract-ocr/tesseract/archive/3.04.00.tar.gz
tar -xvf 3.04.00.tar.gz
cd tesseract-3.04.00
./configure
make
make install
cd /usr/local/share/tessdata/
wget --no-check-certificate https://github.com/tesseract-ocr/tessdata/raw/master/chi_sim.traineddata
pip install requests
apt-get -y autoremove tesseract-ocr
apt-cache policy tesseract-ocr demo 在ubuntu下 测试
git clone https://github.com/luopeixiong/universal_font_anti_aliasing.git
apt-get -y install tesseract-ocr===3.04.01-4 500
cd universal_font_anti_aliasing
echo "include /usr/local/lib" >> /etc/ld.so.conf
ldconfig
# 可能需要
sudo ln -s /usr/lib/x86_64-linux-gnu/libtesseract.so.4 /usr/lib/libtesseract.so.4
cp lang/chi_sim.traineddata /usr/share/tesseract-ocr/4.00/tessdata/chi_sim.traineddata
python3 test_ocr.py