LEADTOOLS Forms (Leadtools.Forms.Recognition assembly)
LEAD Technologies, Inc

ObjectsManagers Property

Example 





Gets a list of object managers that are used to extract the features of the form for this FormRecognitionEngine.
Syntax
public IList<RecognitionObjectsManager> ObjectsManagers {get;}
'Declaration
 
Public ReadOnly Property ObjectsManagers As IList(Of RecognitionObjectsManager)
'Usage
 
Dim instance As FormRecognitionEngine
Dim value As IList(Of RecognitionObjectsManager)
 
value = instance.ObjectsManagers
 get_ObjectsManagers(); 
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
 
'''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
///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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FormRecognitionEngine Class
FormRecognitionEngine Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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