LEADTOOLS Workflow OCR (Leadtools.Workflow.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
MaximumRecognitionThreads Property
See Also 
Leadtools.Workflow.Ocr Namespace > OcrActivity Class : MaximumRecognitionThreads Property



The MaximumRecognitionThreads Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the maximum number of threads to use in recognition.

Syntax

Visual Basic (Declaration) 
Public Property MaximumRecognitionThreads As Integer
Visual Basic (Usage)Copy Code
Dim instance As OcrActivity
Dim value As Integer
 
instance.MaximumRecognitionThreads = value
 
value = instance.MaximumRecognitionThreads
C# 
public int MaximumRecognitionThreads {get; set;}
C++/CLI 
public:
property int MaximumRecognitionThreads {
   int get();
   void set (    int value);
}

Property Value

The maximum number of threads to use in recognition.

Remarks

The LEADTOOLS OCR engines provide support for recognizing document zones in separate threads. This can improve the performance of the recognition process. The default value of 0 (zero) instructs LEADTOOLS to use the maximum number of threads equal to the number of cores available in the current machine. A value of 1, 2, 3, 4, etc. instructs LEADTOOLS to use that maximum number of threads equal to that number. If you do not wish to use multi-threading inside the recognition process then set the value of this property to 1. If you are planning to spawn multiple instances of a workflow runtime that includes the OCR WF activity, it is recommended that you change the value of this property to 1.

Requirements

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

See Also

Leadtools.Workflow.Ocr requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features