SmartZone v8.0 - Updated
Accusoft.SmartZoneOCR.Net Assembly / Accusoft.SmartZoneOCRSdk Namespace / SmartZoneOCR Class / SmartZoneOCR Constructor / SmartZoneOCR Constructor(String,Language,String)
Specifies the path to the SmartZone OCR resource directory.
Specifies the recognition language.
The directory path to the Accusoft.SmartZoneOcr.Common library files.




In This Topic
    SmartZoneOCR Constructor(String,Language,String)
    In This Topic
    Initializes a new instance of the SmartZoneOCR class with the path to the SmartZone OCR resources directory and language for recognition.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal OCRDataPath As String, _
       ByVal language As Language, _
       ByVal pathToLibrary As String _
    )
    'Usage
     
    
    Dim OCRDataPath As String
    Dim language As Language
    Dim pathToLibrary As String
     
    Dim instance As New SmartZoneOCR(OCRDataPath, language, pathToLibrary)

    Parameters

    OCRDataPath
    Specifies the path to the SmartZone OCR resource directory.
    language
    Specifies the recognition language.
    pathToLibrary
    The directory path to the Accusoft.SmartZoneOcr.Common library files.
    Remarks

    SmartZone OCR data files are now packaged in folder assets rather than embedded within its assembly. By default, this folder is expected in the same directory as the assembly. However, this folder can be deployed elsewhere and located at runtime with OCRDataPath.

    IMPORTANT: The path to the SmartZone OCR resource directory may only use ANSI characters.

    The Windows native libraries are Accusoft.SmartZoneOCR.Common.dll and Accusoft.SmartZoneOCR.Common64.dll. For Linux distributions, the name of the file is Accusoft.SmartZoneOCR.CommonLinux64.so.

    See Also