ImageGear .NET - Updated
ImGearRecognition Constructor(String)




ImageGear24.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecognition Class > ImGearRecognition Constructor : ImGearRecognition Constructor(String)
Path to load the native Recognition libraries and resources from.
Initializes a new instance of the ImGearRecognition class and specifies a path to load the native Recognition libraries and resources from.
Syntax
'Declaration
 
Public Function New( _
   ByVal resourcePath As String _
)
'Usage
 
Dim resourcePath As String
 
Dim instance As New ImGearRecognition(resourcePath)
public ImGearRecognition( 
   string resourcePath
)
public: ImGearRecognition( 
   string* resourcePath
)
public:
ImGearRecognition( 
   String^ resourcePath
)

Parameters

resourcePath
Path to load the native Recognition libraries and resources from.
Remarks

The native Recognition engine is initialized during this constructor, unless it has already been initialized by a previously created instance, in which case a reference to the engine is obtained.

resourcePath is used to specify where the native Recognition libraries and resource files are located.

Each instance created by this constructor will access the shared global collection of Recognition settings. This means that changing settings (e.g. ImGearRecOutputManager.Format) in one instance will affect all other instances using the global settings. To isolate the Recognition settings for each instance, use the overloaded constructor, ImGearRecognition Constructor(Boolean). This will force each instance to use its own collection of settings.

An application should use exception handling to catch any exceptions thrown by this constructor.

If you are using Recognition in a web project, this constructor is suited to web applications.

See Also

Reference

ImGearRecognition Class
ImGearRecognition Members
Overload List
ImGearRecognition Class