Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
EnableParallelRecognition Property
See Also  Example
Leadtools.Document Namespace > RasterDocumentEngine Class : EnableParallelRecognition Property




Enables or disables the parallel recognition mode of the engine.

Syntax

Visual Basic (Declaration) 
Public Property EnableParallelRecognition As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim value As Boolean
 
instance.EnableParallelRecognition = value
 
value = instance.EnableParallelRecognition
C# 
public bool EnableParallelRecognition {get; set;}
Managed Extensions for C++ 
public: __property bool get_EnableParallelRecognition();
public: __property void set_EnableParallelRecognition( 
   bool value
);
C++/CLI 
public:
property bool EnableParallelRecognition {
   bool get();
   void set (bool value);
}

Return Value

Flags to enable or disable parallel recognition mode.

Example

Visual BasicCopy Code
Public Sub EnableParallelRecognitionExample()
   ' Note that this is a sample key, which will not work in your toolkit
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")

   Dim rasterDocument As RasterDocumentEngine
   rasterDocument = RasterDocumentEngine.Instance
   rasterDocument.Startup()

   Dim enable As Boolean = rasterDocument.EnableParallelRecognition
   If (Not enable) Then
      rasterDocument.EnableParallelRecognition = True
   End If

   MessageBox.Show("The Parallel recognition mode is enabled.")

   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void EnableParallelRecognitionExample() 

   // Note that this is a sample key, which will not work in your toolkit 
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); 
 
   RasterDocumentEngine rasterDocument; 
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
 
   bool enable = rasterDocument.EnableParallelRecognition; 
   if (!enable) 
      rasterDocument.EnableParallelRecognition = true; 
 
   MessageBox.Show("The Parallel recognition mode is enabled."); 
   rasterDocument.Shutdown(); 
}

Remarks

The parallel recognition mode is used when the OCR engine uses the following recognition modules: If the host PC has two processors or a hyper-threaded one, enabling this mode can speed up the recognition process by allowing the two recognition engines to run in a real parallel way. If the application does not call this function at all, the default setting is TRUE (enabled)

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features