Status of the OCR engine on the server.
Object.defineProperty(ServiceStatus.prototype, 'ocrEngineStatus',
get: function()
)
ocrEngineStatus: OcrEngineStatus; // read-only
Status of the OCR engine on the server.
The Documents 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 web.config
(or local.config
) 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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET