ImageGear23.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecognition Class > ImGearRecognition Constructor : ImGearRecognition Constructor(Boolean) |
'Declaration Public Function New( _ ByVal createUnique As Boolean _ )
'Usage Dim createUnique As Boolean Dim instance As New ImGearRecognition(createUnique)
public ImGearRecognition( bool createUnique )
public: ImGearRecognition( bool createUnique )
public: ImGearRecognition( 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.
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.
If you are using Recognition in a web project, you cannot use this constructor as it is not suited to web applications. Instead, you need to specify the location of the dependencies in the Recognition constructor, ImGearRecognition Constructor(String,Boolean).