Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > DocumentText Class : OcrEngine Property |
public IOcrEngine OcrEngine {get; set;}
'Declaration
Public Property OcrEngine As IOcrEngine
'Usage
Dim instance As DocumentText Dim value As IOcrEngine instance.OcrEngine = value value = instance.OcrEngine
public OcrEngine getOcrEngine() public void setOcrEngine(OcrEngine value)
public: property IOcrEngine^ OcrEngine { IOcrEngine^ get(); void set ( IOcrEngine^ value); }
This property is not used if the value of TextExtractionMode is DocumentTextExtractionMode.SvgOnly.
The text of the document can be extracted using OCR technologies, in this mode, a valid IOcrEngine instance must be initialized (created and started) and set in the OcrEngine property before DocumentPage.GetText is called.
OcrEngine can be setup with any extra options from outside (such as enable languages, spell checker, accuracy tradeoffs, etc.). The Document class will use the engine as is.
The Document object will not delete the value of OcrEngine when it is disposed. IOcrEngine is thread-safe by nature and the same instance can be set into multiple Document instances and used at the same time.
For more information, refer to Parsing Text with the Documents Library.
For an example, refer to DocumentText.