ImageGear .NET v25.2 - Updated
ImageGear.OCR Assembly / ImageGear.OCR Namespace / ImGearOCR Class / Create Method / Create(String) Method
The path to resources used by OCR engine. Argument may be null or empty. In this case, the default resource path is used.




In This Topic
    Create(String) Method
    In This Topic
    Creates a new instance of the ImGearOCR class with the specified resource path.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal resourcePath As String _
    ) As ImGearOCR
    'Usage
     
    Dim resourcePath As String
    Dim value As ImGearOCR
     
    value = ImGearOCR.Create(resourcePath)
    public static ImGearOCR Create( 
       string resourcePath
    )
    public: static ImGearOCR* Create( 
       string* resourcePath
    ) 
    public:
    static ImGearOCR^ Create( 
       String^ resourcePath
    ) 

    Parameters

    resourcePath
    The path to resources used by OCR engine. Argument may be null or empty. In this case, the default resource path is used.

    Return Value

    OCR engine for text recognition.
    Exceptions
    ExceptionDescription
    Initialization failed. Additional information is in the Data member of the exception.
    Remarks
    Creates a new object that represents the OCR engine. For best performance, only a single instance should be created per thread.
    See Also