Tesseract OCR.init() makes the code to exit in Sharepoint website

97 Views Asked by At

We are using Tesseract OCR (tessnet2 dll) for converting image to text which is working fine in Console Application. But, when we host the same in sharepoint, the application exits at ocr.init(). In few posts, it is mentioned that the tessdata folder should be under bin/debug. But, for sharepoint site, where I need to keep tessdata folder?

Thanks in Advance

1

There are 1 best solutions below

0
On

I am not familiar with tessnet2 wrapper, but tesseract API allows you to specify datapath (there are relevant call also in C-API).

Tesseract wrote error message to console, so it would be useful to catch error reason. You can try to set variable debug_file to redirect it to file, but I am not sure if it will be working before init...