←Select platform

ObjectsManagers Property

Summary
Gets a list of object managers that are used to extract the features of the form for this FormRecognitionEngine.
Syntax
C#
VB
C++
Java
public IList<RecognitionObjectsManager> ObjectsManagers { get; } 
  
Public ReadOnly Property ObjectsManagers As IList(Of RecognitionObjectsManager) 
public java.util.List<RecognitionObjectsManager> getObjectsManagers(); 
public: 
property IList<RecognitionObjectsManager^>^ ObjectsManagers { 
   IList<RecognitionObjectsManager^>^ get(); 
} 

Property Value

List of object managers that are used to extract the features of the form.

Example

For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.

This example how to add ObjectManagers

C#
VB
using Leadtools; 
using Leadtools.Barcode; 
using Leadtools.Codecs; 
using Leadtools.Forms.Common; 
using Leadtools.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 ocrObjectManager = new OcrObjectsManager(formsOcrEngine); 
      recognitionEngine.ObjectsManagers.Add(ocrObjectManager); 
   } 
 
   if (enableBarcode) 
   { 
      BarcodeObjectsManager barcodeObjectManager = new BarcodeObjectsManager(formsBarcodeEngine); 
      recognitionEngine.ObjectsManagers.Add(barcodeObjectManager); 
   } 
} 
Imports Leadtools 
Imports Leadtools.Barcode 
Imports Leadtools.Codecs 
Imports Leadtools.Forms.Common 
Imports Leadtools.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 ocrObjectManager As New OcrObjectsManager(formsOcrEngine) 
      recognitionEngine.ObjectsManagers.Add(ocrObjectManager) 
   End If 
 
   If enableBarcode Then 
      Dim barcodeObjectManager As New BarcodeObjectsManager(formsBarcodeEngine) 
      recognitionEngine.ObjectsManagers.Add(barcodeObjectManager) 
   End If 
End Sub 
Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Recognition Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.