Closed ghost closed 5 years ago
Hi @MabutasGroup , $executable='/home/***/webapps/pub/thiagoalessio/tesseract_ocr';
is not the executable you need ... what my library provides is only a convenient way of generating valid tesseract
commands, but you still need the real tesseract installed on your server: https://github.com/tesseract-ocr/tesseract
and the real tesseract is what you should put in executable
;D
Since this is a usage question rather than a bug on the library, I'm going to close this and invite you to join https://gitter.im/thiagoalessio/tesseract-ocr-for-php in case you have further questions, sound good ?
Thank you for your responding.
https://github.com/tesseract-ocr/tesseract/issues/751 It seems Blacklist and whitelist no longer work in 4.00alpha. They used to work in 3.04. If I want to use them, I should downgrade to tesseract 3.04 ?
Hi @thiagoalessio . Recently I have installed tesseract ocr php to my web hosting server. After some tests, I have had this error. Please help.
Fatal error: Uncaught thiagoalessio\TesseractOCR\UnsuccessfulCommandException: Error! The command did not produce any output. Generated command: "/home/g/gimmick/@@@.ru/public_html/bots/../tesseract/vendor/thiagoalessio/tesseract_ocr/src/TesseractOCR.php" "frame.jpg" "/tmp/ocrJvi4pJ" Returned message: sh: 1: /home/g/gimmick/@@@.ru/public_html/bots/../tesseract/vendor/thiagoalessio/tesseract_ocr/src/TesseractOCR.php: Permission denied in /home/g/gimmick/@@@.ru/public_html/tesseract/vendor/thiagoalessio/tesseract_ocr/src/FriendlyErrors.php:74 Stack trace: #0 /home/g/gimmick/@@@.ru/public_html/tesseract/vendor/thiagoalessio/tesseract_ocr/src/TesseractOCR.php(39): thiagoalessio\TesseractOCR\FriendlyErrors::checkCommandExecution(Object(thiagoalessio\TesseractOCR\Command), '', 'sh: 1: /home/g/...') #1 /home/g/gimmick/@@@.ru/public_html/bots/testejarimabot.php(409): thiagoalessio\TesseractOCR\TesseractOCR->run() #2 {main} thrown in /home/g/gimmick/@@@.ru/public_html/tesseract/vendor/thiagoalessio/tesseract_ocr/src/FriendlyErrors.php on line 74
Hello buddy. How can I solve this problem?
My Code:
And the result: