 | OcrApiPathToEngine Property |
Gets or sets path to the tesseract.dll. Null for automatic detection. See remarks sections for detail.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic static string PathToEngine { get; set; }Public Shared Property PathToEngine As String
Get
Set
public:
static property String^ PathToEngine {
String^ get ();
void set (String^ value);
}static member PathToEngine : string with get, set
/** @property */
public static String get_PathToEngine()
/** @property */
public static void set_PathToEngine(String value)
Patagames.Ocr.OcrApi.get_PathToEngine = function();
Patagames.Ocr.OcrApi.set_PathToEngine = function(value);
Property Value
String
RemarksIn some cases, library initializer can not find tesseract.dll library to load.
A typical example of this situation is a Web application.
Web apps is running in a IIS working directory, unlike the classical apps. As a consequence, standard LoadLibrary function can not find the dll during loading process.
In this case, you must explicitly specify the full path to the tesseract.dll file through this property.
The initialization algorithm is as follows:
- Attempting to load dll from the path which received through PathToEngine property.
- Attempting to load dll from x64 or x86 folder.Needed folder automatically detected by based the process compilation mode and operating system.
- Attempting to load dll from the working directory of the process which call initialization.
- Attempting to load dll from the same directory where placed assembly which call initialization.
- Otherwise, initialization error.
See Also