Neelarghya / tesseract-unity

Standalone OCR plugin for Unity using Tesseract
Apache License 2.0
69 stars 17 forks source link

TessAPIInit failed. Output: -1 #6

Open Thor-Franklin opened 3 years ago

Thor-Franklin commented 3 years ago

thanks for your resp. The console print "TessAPIInit failed. Output: -1" when I run this project in version 2019.4.9. Should I install tessract additional in my PC? Looking forward for your reply,thanks!

Neelarghya commented 3 years ago

Which platform are you building to? If your tesseract version is printing, your tesseract files are ok (also since it hits this TessBaseAPI.Init api the files should be fine). No need to install it to your PC, I guess tesseract.TessBaseAPI.Init4 is failing (https://tesseract-ocr.github.io/tessapi/4.0.0/a02186.html#a2be07b4c9449b8cfc43e9c26ee623050) which might happen if your TessData files mismatch the version of Tesseract, or TessData files are not present, or corrupt or not read/writable In which case try finding the compatible TessData file or recheck the file paths

Thor-Franklin commented 3 years ago

Thanks for your reply! I'm going to build it on Windows platform as a test. I found the reson is the project file path contains Chinese characters. Like this project path“ C:\Users\测试\Desktop\tesseract-unity-master” will hit the error above. Thanks again for your reply!

juneho777 commented 1 year ago

Hi, I couldn't add other languages with tesseract 4.1 with android. Can you please provide the docker file so I can try tesseract 4.0