python Tesseract installation method

python Tesseract installation method

EXE executable file address: http: //download.csdn.net/download/whatday/7740469;
Download tesseract-ocr-setup-3.02.02.exe installation package, will have Tesseract-OCR files in the appropriate disk After a successful installation folder

Setting the path environment variable

There are new environment variable TESSDATA_PREFIX

D: \ Program Files (x86) \ Tesseract-OCR can be added to the list of

tesseract --list-langs # View Tesseract-OCR language support

If you want to download the font recognition Simplified Chinese will
Simplified Chinese font file download at: http: //download.csdn.net/detail/wanghui2008123/7621567 after the download is complete decompression, and then cut to the file directory tessdata down on it .

 

运行下
<pre>
tesseract C://Users/Administrator/Desktop/1.jpg C://Users/Administrator/Desktop/output –l chi_sim
</pre>

Output.txt then generates a file is opened, you can see the text conversion

Guess you like

Origin www.cnblogs.com/newmiracle/p/11856314.html