gosseract and Imagick web server implementation using gin gonic as framework
To install Imagick, run the following command:
sudo apt-get install libmagickwand-dev
Tesseract is available directly from many Linux distributions. The package is generally called 'tesseract' or 'tesseract-ocr' - search your distribution's repositories to find it. Thus you can install Tesseract 4.x and it's developer tools on Ubuntu 18.x bionic by simply running:
sudo apt install tesseract-ocr
sudo apt install libtesseract-dev
cd project-folder
go get -u github.com/kardianos/govendor
govendor sync
Put the tessdata folder into /home/ or any other accessible folder, then set the value on env.sh
with key TESSDATA_PREFIX
Source or execute the env.sh
then either go build
and run the executable, or go run main.go
to get debug log in terminal.