Constructor TesseractOcr
- Namespace
- LMKit.Integrations.Tesseract
- Assembly
- LM-Kit.NET.dll
TesseractOcr()
Initializes a new instance of the TesseractOcr class using the default model storage directory.
public TesseractOcr()
Remarks
Traineddata files are expected at:
{ModelStorageDirectory}/lm-kit/tessdata-best/
TesseractOcr(string)
Initializes a new instance of the TesseractOcr class with the specified Tesseract resource path.
public TesseractOcr(string resourcePath)
Parameters
resourcePathstringThe directory path where Tesseract
*.traineddatafiles are located.
Exceptions
- ArgumentException
Thrown if
resourcePathisnull, empty, or whitespace.