Leadtools.Workflow.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
MaximumRecognitionThreads Property
See Also 
Leadtools.Workflow.Ocr Namespace > OcrActivity Class : MaximumRecognitionThreads Property



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);
}

Return 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 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.Workflow.Ocr requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features