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 


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -