c# - WCF Teseract error: Attempted to read or write protected memory... on exe works fine -
i use teseract v2 ocr image, it's work fine in exe, when try on wcf everythime exception:
attempted read or write protected memory. indication other memory has been corrupted.
the same code on exe (work) , wcf (exception):
var processor = new tesseractprocessor(); processor.setvariable("tessedit_char_whitelist", metadata.textregexpattern); processor.init(@"../../tessdata/" + language + ".traineddata", language, 3); processor.setpagesegmode(_pagesegmentationmode); processor.analyselayout(source); return processor.recognize(image.fromfile(filepath)); // here's problem recognize method