Skip to content

Instantly share code, notes, and snippets.

@scfcode
Created November 22, 2022 20:59
Show Gist options
  • Save scfcode/ffeeab5c318b9eb7b8fefec7b35284c2 to your computer and use it in GitHub Desktop.
Save scfcode/ffeeab5c318b9eb7b8fefec7b35284c2 to your computer and use it in GitHub Desktop.
tesseract experiment

Following https://github.com/tesseract-ocr/tessdoc/blob/main/tess5/TrainingTesseract-5.md

cd build
~/Developer/GitHub/tesseract/build 
../configure PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libarchive/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig --prefix=/Users/basilbasilbasil/local

Configuration is done.
You can now build and install tesseract by running:

$ make
$ sudo make install
$ sudo ldconfig

Documentation will not be built because asciidoc or xsltproc is missing.

Training tools can be built and installed with:

$ make training
$ sudo make training-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment