A Folked version from https://github.com/ccp0101/tesseract-web-service