Open-source - Tesseract

Installation Tesseract

  1. Download Tesseract (you can choose the latest 64-bit version)

  2. Installation Tesseract (all you can click Next)
  3. Add system environment variables
    1) the installation directory to the Path (reference value C: \ Program Files \ Tesseract the OCR-)
    2) newly named TESSDATA_PREFIX system variable, its value points tessdata folder (reference value C: \ Program Files \ Tesseract-OCR \ tessdata)
  4. Download training data , extract and copy the folder to tessdata (chi-sim Simplified Chinese)

Please refer to here

Tesseract using the command line

tesseract [image] [output] -l [lang]

image: The image file path

output: the output file path, the default output file format to text format

lang: training data file path

Note: cmd need to use administrator mode is on, or can not be loaded properly training data

Please refer to here

Guess you like

Origin www.cnblogs.com/zdfffg/p/11714894.html