Title: Tesseract OCR.init() makes the code to exit in Sharepoint website
Tags: sharepoint;ocr;tesseract;tessnet2
Question: 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 anne41@example.org(). 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



Here is another answer: 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...


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2019:00:10/23/19', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<sharepoint><ocr><tesseract><tessnet2>', 'Title': 'Tesseract OCR.init() makes the code to exit in Sharepoint website', 'ViewCount': 66, 'id': 58521947, 'user_AboutMe': '', 'user_AccountId': 10361176.0, 'user_DisplayName': 'Manideep Yechuri', 'user_Reputation': 293.0, 'user_Views': 57.0, 'user_id': 7641607.0}}