ImageGear22.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecognition Class > ImGearRecognition Constructor : ImGearRecognition Constructor(String) |
'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 )
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.