Gets a list of object managers that are used to extract the features of the form for this FormRecognitionEngine.
public IList<RecognitionObjectsManager> ObjectsManagers {get;}
Public ReadOnly Property ObjectsManagers As IList(Of RecognitionObjectsManager)
public:
property IList<RecognitionObjectsManager^>^ ObjectsManagers {
IList<RecognitionObjectsManager^>^ get();
}
List of object managers that are used to extract the features of the form.
For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.
This example how to add ObjectManagers
Imports Leadtools
Imports Leadtools.Barcode
Imports Leadtools.Codecs
Imports Leadtools.Forms
Imports Leadtools.Forms.Ocr
Imports Leadtools.Forms.Processing
Imports Leadtools.Forms.Recognition
Imports Leadtools.Forms.Recognition.Barcode
Imports Leadtools.Forms.Recognition.Ocr
'''This method sets the object managers.
Public Sub SetObjectManagers(recognitionEngine As FormRecognitionEngine, formsOcrEngine As IOcrEngine, formsBarcodeEngine As BarcodeEngine, enableDefault As Boolean, enableOcr As Boolean, enableBarcode As Boolean)
If recognitionEngine Is Nothing Then
Return
End If
If enableDefault Then
Dim defaultObjectManager As New DefaultObjectsManager()
recognitionEngine.ObjectsManagers.Add(defaultObjectManager)
End If
If enableOcr Then
Dim ocrObejectManager As New OcrObjectsManager(formsOcrEngine)
ocrObejectManager.Engine = formsOcrEngine
recognitionEngine.ObjectsManagers.Add(ocrObejectManager)
End If
If enableBarcode Then
Dim barcodeObjectManager As New BarcodeObjectsManager(formsBarcodeEngine)
barcodeObjectManager.Engine = formsBarcodeEngine
recognitionEngine.ObjectsManagers.Add(barcodeObjectManager)
End If
End Sub
using Leadtools;
using Leadtools.Barcode;
using Leadtools.Codecs;
using Leadtools.Forms;
using Leadtools.Forms.Ocr;
using Leadtools.Forms.Processing;
using Leadtools.Forms.Recognition;
using Leadtools.Forms.Recognition.Barcode;
using Leadtools.Forms.Recognition.Ocr;
///This method sets the object managers.
public void SetObjectManagers(FormRecognitionEngine recognitionEngine,
IOcrEngine formsOcrEngine,
BarcodeEngine formsBarcodeEngine,
bool enableDefault,
bool enableOcr,
bool enableBarcode)
{
if (recognitionEngine == null)
return;
if (enableDefault)
{
DefaultObjectsManager defaultObjectManager = new DefaultObjectsManager();
recognitionEngine.ObjectsManagers.Add(defaultObjectManager);
}
if (enableOcr)
{
OcrObjectsManager ocrObejectManager = new OcrObjectsManager(formsOcrEngine);
ocrObejectManager.Engine = formsOcrEngine;
recognitionEngine.ObjectsManagers.Add(ocrObejectManager);
}
if (enableBarcode)
{
BarcodeObjectsManager barcodeObjectManager = new BarcodeObjectsManager(formsBarcodeEngine);
barcodeObjectManager.Engine = formsBarcodeEngine;
recognitionEngine.ObjectsManagers.Add(barcodeObjectManager);
}
}
Products |
Support |
Feedback: ObjectsManagers Property - Leadtools.Forms.Recognition |
Introduction |
Help Version 19.0.2017.3.22
|
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.