←Select platform

DefaultObjectsManager Constructor

Summary
Initializes a new DefaultObjectsManager class object.

Syntax
C#
C++/CLI
Python
public: 
DefaultObjectsManager(); 
__init__() # Default constructor 
Example
C#
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); 
   } 
} 
Requirements

Target Platforms

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

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