Click or drag to resize

Tesseract5Engine Constructor

Initializes a new instance of the Tesseract5Engine class with the default OcrResources directory

Namespace:  Atalasoft.Ocr.Tesseract
Assembly:  Atalasoft.dotImage.Ocr.Tesseract5 (in Atalasoft.dotImage.Ocr.Tesseract5.dll) Version: 11.5.0.5.0.230 (.NET 4.6.2, x86)
Syntax
public Tesseract5Engine()
Remarks

Tesseract's resources are loaded at construction time. Firstly, a directory list is built. Secondly, each directory in that list is checked to see if it contains the \Tesseract\v5.3.0 directory structure. When a directory is found that directory is checked to ensure that it contains all of the correct resource files. The following locations are searched for in order:

1) If the constructor's resources argument is supplied, it is checked (for example, C:\ResourcesFolder);

2) If the constructor's resources argument is supplied, the OcrResources subdirectory of the argument is checked (for example, C:\ResourcesFolder\OcrResources);

3) The SDK OcrResources directory which is determined by a registry key (for example, C:\RegistryKeyFolder\OcrResources);

4) The location of the Tesseract Assembly (for example, C:\TesseractAssemblyFolder);

5) The location of the Tesseract Assembly's OcrResources subdirectory (for example, C:\TesseractAssemblyFolder\OcrResources);

6) The value of the TESS5DATA_PREFIX environment variable (for example, C:\TESS5DATA_PREFIXFolder).

See Also