Status of the OCR engine on the server.
Object.defineProperty(ServiceStatus.prototype, 'ocrEngineStatus',
get: function()
)
readonly ocrEngineStatus: OcrEngineStatus;
Status of the OCR engine on the server.
The Document service can use LEADTOOLS OCR to extract text data from raster images using DocumentPage.GetText from document types that do not support SVG such as TIFF, PNG or JPEG. Text can be extracted from documents that support SVG directly such as PDF, DOCX, TEXT without the need of an OCR engine.
The service code reads the value of the lt.Ocr.EngineType
setting from appsettings.json
and if it is not empty,
will try to create an instance of the LEADTOOLS OCR Engine specified using the value of the lt.Ocr.RuntimeDirectory
setting as the engine runtime
path.
When the value of lt.Ocr.EngineType
is empty, then the server admin does not wish to use an OCR engine and the value of
OcrEngineStatus will be NotSet. Subsequent calls to GetText on raster document
pages will return an empty object.
When the value of lt.Ocr.EngineType
is not empty, then the server admin will create the OCR engine specified and when successful and the
value of OcrEngineStatus will be set to Ready. Subsequent calls GetText on
raster document pages will return the text characters found.
If creation the OCR engine fails for any reason (most common are not setting the lt.Ocr.RuntimeDirectory
setting to the engine runtime path
or insufficient LEADTOOLS license being set) then the value of OcrEngineStatus will be set to Error.
Subsequent calls GetText raster document pages will return an empty object.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document