Compiling / merging tesseract into one binary
Is it possible to compile tesseract into a single binary?
I use the following to compile the program, but how can the tesseract shared libraries be compiled into one binary, so the program is 100% portable and you don't need to install tesseract on the current system?
No need to compile leptonica to binary
g++ -std=c++11 txtocr.cpp -o txtocr -llept -ltesseract
+3
source to share
4 answers
Try pyInstaller , it supports Windows, Linux and OSX. Below is an example command - create a single file executable.
pyinstaller -F /path/to/myscript.py
It can be installed pip install pyinstaller
or use MacPorts or Homebrew to install on OSX.
0
source to share