LEADTOOLS Forms (Leadtools.Forms.Recognition assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ObjectsManagers Property
See Also 
Leadtools.Forms.Recognition Namespace > FormRecognitionEngine Class : ObjectsManagers Property



The ObjectsManagers Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Gets a list of object managers that are used to extract the features of the form for this FormRecognitionEngine.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ObjectsManagers As IList(Of RecognitionObjectsManager)
Visual Basic (Usage)Copy Code
Dim instance As FormRecognitionEngine
Dim value As IList(Of RecognitionObjectsManager)
 
value = instance.ObjectsManagers
C# 
public IList<RecognitionObjectsManager> ObjectsManagers {get;}
C++/CLI 
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

Visual BasicCopy Code
'''This method sets the object managers.
Public Sub SetObjectManagers(ByVal recognitionEngine As FormRecognitionEngine, ByVal formsOcrEngine As IOcrEngine, ByVal formsBarcodeEngine As BarcodeEngine, ByVal enableDefault As Boolean, ByVal enableOcr As Boolean, ByVal enableBarcode As Boolean)
   If recognitionEngine Is Nothing Then
      Return
   End If
   If enableDefault Then
      Dim defaultObjectManager As DefaultObjectsManager = New DefaultObjectsManager()
      recognitionEngine.ObjectsManagers.Add(defaultObjectManager)
   End If
   If enableOcr Then
      Dim ocrObejectManager As OcrObjectsManager = New OcrObjectsManager(formsOcrEngine)
      ocrObejectManager.Engine = formsOcrEngine
      recognitionEngine.ObjectsManagers.Add(ocrObejectManager)
   End If

   If enableBarcode Then
      Dim barcodeObjectManager As BarcodeObjectsManager = New BarcodeObjectsManager(formsBarcodeEngine)
      barcodeObjectManager.Engine = formsBarcodeEngine
      recognitionEngine.ObjectsManagers.Add(barcodeObjectManager)
   End If
End Sub
C#Copy Code
///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);
   }
}

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features