OCR 02: Tesseract-OCR
Catalog
Project Host And Brief
- Official Site: https://tesseract-ocr.github.io/
- GitHub Repository: https://github.com/tesseract-ocr/tesseract
Tesseract Windows Release
Link: https://github.com/UB-Mannheim/tesseract
Download: https://digi.bib.uni-mannheim.de/tesseract/
Installation
Windows
The installation size is small
- Download w64 binary from https://github.com/UB-Mannheim/tesseract/wiki
- Run it, and check the Chinese language traineddata during the install process.
Ubuntu
TBD
Usage
"C:\Program Files\Tesseract-OCR\tesseract.exe" fp01.jpg result_fp01 -l chi_sim
Performance
- Run on CPU, Speed is much faster than EasyOCR
- The correct rate is a little bit higher than EasyOCR, while the situation is almost the same, text can hardly be read when handling with the photos taken by a cellphone
Improving the quality of the output
Link: https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html
Image processing
- Rescaling
- Binarisation
- Noise Removal
- Dilation / Erosion
- Rotation / Deskewing
- Borders
- Transparency / Alpha channel
- Tools / Libraries
- Examples
- Tables recognitions
- Page segmentation method
- Dictionaries, word lists, and patterns