ImageGear22.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecognition Class > ImGearRecognition Constructor : ImGearRecognition Constructor(String,Boolean) |
'Declaration Public Function New( _ ByVal resourcePath As String, _ ByVal createUnique As Boolean _ )
'Usage Dim resourcePath As String Dim createUnique As Boolean Dim instance As New ImGearRecognition(resourcePath, createUnique)
public ImGearRecognition( string resourcePath, bool createUnique )
public: ImGearRecognition( string* resourcePath, bool createUnique )
public: ImGearRecognition( String^ resourcePath, bool createUnique )
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.
If createUnique is true, each instance created by this constructor will create and access its own unique collection of Recognition settings. If false, the new instance will use the global collection of Recognition settings that is shared by all other non-unique instances created in the same process.
An application should use exception handling to catch any exceptions thrown by this constructor.